dear nxp support
I want to use tc command to setup dpsw switching offloads routing actions our LX2160A‑based custom hardware.
But the tc command return below error
tc filter add dev eth4 ingress flower src_mac 00:01:02:03:04:05 skip_sw action trap
RTNETLINK answers: No such file or directory
We have an error talking to the kernel
1.our environment details as below:
LSDK: 20.05
Kernel: 4.19.90-rt35
MC firmware: 10.36.0
2.dpsw configure as below
ls-listni
dprc.1/dpni.7 (interface: eth6, end point: dpmac.3)
dprc.1/dpni.1 (interface: eth1, end point: dpmac.4)
dprc.1/dpni.0 (interface: eth0, end point: dpsw.0.1)
dprc.1/dprc.3/dpni.6 (end point: dpmac.9)
dprc.1/dprc.3/dpni.5 (end point: dpmac.7)
dprc.1/dprc.3/dpni.4 (end point: dpsw.0.3)
dprc.1/dprc.2/dpni.3 (end point: dpmac.6)
dprc.1/dprc.2/dpni.2 (end point: dpmac.5)
restool dpsw info dpsw.0
dpsw version: 8.12
dpsw id: 0
plugged state: plugged
endpoints:
interface 0:
connection: dpmac.17
link state: up
Taildrop enabled: false
Taildrop units: BUFFERS
Taildrop threshold: 192
max frame length: 1536
dpsw_cnt_ing_frame: 320810
dpsw_cnt_ing_byte: 216649193
dpsw_cnt_ing_fltr_frame: 3
dpsw_cnt_ing_frame_discard: 1
dpsw_cnt_ing_mcast_frame: 12
dpsw_cnt_ing_mcast_byte: 888
dpsw_cnt_ing_bcast_frame: 4
dpsw_cnt_ing_bcast_bytes: 240
dpsw_cnt_egr_frame: 1375766
dpsw_cnt_egr_byte: 162881534
dpsw_cnt_egr_frame_discard: 0
dpsw_cnt_egr_stp_frame_discard: 14
dpsw_cnt_ing_no_buffer_discard: 0
interface 1:
connection: dpni.0
link state: up
Taildrop enabled: false
Taildrop units: BUFFERS
Taildrop threshold: 192
max frame length: 1536
dpsw_cnt_ing_frame: 140203
dpsw_cnt_ing_byte: 71960489
dpsw_cnt_ing_fltr_frame: 18
dpsw_cnt_ing_frame_discard: 0
dpsw_cnt_ing_mcast_frame: 23
dpsw_cnt_ing_mcast_byte: 1762
dpsw_cnt_ing_bcast_frame: 21
dpsw_cnt_ing_bcast_bytes: 966
dpsw_cnt_egr_frame: 208345
dpsw_cnt_egr_byte: 203077186
dpsw_cnt_egr_frame_discard: 0
dpsw_cnt_egr_stp_frame_discard: 1348037
dpsw_cnt_ing_no_buffer_discard: 0
interface 2:
connection: dpmac.8
link state: up
Taildrop enabled: false
Taildrop units: BUFFERS
Taildrop threshold: 192
max frame length: 1536
dpsw_cnt_ing_frame: 1233896
dpsw_cnt_ing_byte: 90745465
dpsw_cnt_ing_fltr_frame: 833
dpsw_cnt_ing_frame_discard: 0
dpsw_cnt_ing_mcast_frame: 1088454
dpsw_cnt_ing_mcast_byte: 74330946
dpsw_cnt_ing_bcast_frame: 31011
dpsw_cnt_ing_bcast_bytes: 2642417
dpsw_cnt_egr_frame: 114288
dpsw_cnt_egr_byte: 13758010
dpsw_cnt_egr_frame_discard: 0
dpsw_cnt_egr_stp_frame_discard: 348411
dpsw_cnt_ing_no_buffer_discard: 0
interface 3:
connection: dpni.4
link state: up
Taildrop enabled: false
Taildrop units: BUFFERS
Taildrop threshold: 192
max frame length: 1536
dpsw_cnt_ing_frame: 1686
dpsw_cnt_ing_byte: 176814
dpsw_cnt_ing_fltr_frame: 0
dpsw_cnt_ing_frame_discard: 0
dpsw_cnt_ing_mcast_frame: 17
dpsw_cnt_ing_mcast_byte: 1354
dpsw_cnt_ing_bcast_frame: 1
dpsw_cnt_ing_bcast_bytes: 46
dpsw_cnt_egr_frame: 1333873
dpsw_cnt_egr_byte: 103472104
dpsw_cnt_egr_frame_discard: 0
dpsw_cnt_egr_stp_frame_discard: 339270
dpsw_cnt_ing_no_buffer_discard: 0
dpsw_attr.options value is: 0
max VLANs: 16
max FDBs: 4
max FDB entries: 1024
FDB aging time: 300
max FDB MC groups: 32
frame storage memory size: 1536
number of interfaces: 4
current number of VLANs: 3
current number of FDBs: 1
component_type: DPSW_COMPONENT_TYPE_C_VLAN
flooding cfg: DPSW_FLOODING_PER_FDB
broadcast cfg: DPSW_BRODCAST_PER_FDB
bridge link show
6: eth2 state UP : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master dpswbr0 state forwarding priority 32 cost 4
7: eth3 state UP : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master dpswbr0 state forwarding priority 32 cost 100
8: eth4 state UP : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master dpswbr0 state forwarding priority 32 cost 2
9: eth5 state UNKNOWN : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master dpswbr0 state forwarding priority 32 cost 100