LS1028ARDB VLAN tag issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1028ARDB VLAN tag issue

1,465 Views
vicky_WY
Contributor I

hello everyone: when I use LS1028ardb with openil 1.9 I try to set vlan tag, however when a command is entered:  tc filter add dev swp0 parent ffff: protocol 802.1Q flower skip_sw action vlan modify id 2 priority 2  an error is reported: Error: mscc_ocelot_common: VLAN modify action can only be offloaded to VCAP IS1. We have an error talking to the kernel This command was successful until I added 'ebtables' functionality, but I got an error when the kernel supported 'ebtables'.  How can I solve this problem?

Tags (1)
0 Kudos
Reply
2 Replies

1,463 Views
vicky_WY
Contributor I

vlanid error.png

 

0 Kudos
Reply

1,445 Views
yipingwang
NXP TechSupport
NXP TechSupport

You can refer to latest document v1.10.

Before using chains, you need to register each chain and set chain pipeline order for a packet, the hardware ingress order is : IS1->IS2->PSFP.

tc qdisc add dev swp0 clsact

tc filter add dev swp0 ingress chain 0 pref 49152 flower skip_sw action goto chain 10000

tc filter add dev swp0 ingress chain 10000 pref 49152 flower skip_sw action goto chain 11000

tc filter add dev swp0 ingress chain 11000 pref 49152 flower skip_sw action goto chain 12000

tc filter add dev swp0 ingress chain 12000 pref 49152 flower skip_sw action goto chain 20000

tc filter add dev swp0 ingress chain 20000 pref 49152 flower skip_sw action goto chain 21000

tc filter add dev swp0 ingress chain 21000 pref 49152 flower skip_sw action goto chain 30000

 

then add rules to corresponding chain

tc filter add dev swp0 ingress chain 11000 protocol 802.1Q flower skip_sw vlan_id 1 vlan_prio 1 action vlan modify id 2 priority 2 action goto chain 12000

 

0 Kudos
Reply