Skip to content

Commit bbb253b

Browse files
vladimirolteanPaolo Abeni
authored andcommitted
selftests: ocelot: tc_flower_chains: make test_vlan_ingress_modify() more comprehensive
We have two IS1 filters of the OCELOT_VCAP_KEY_ANY key type (the one with "action vlan pop" and the one with "action vlan modify") and one of the OCELOT_VCAP_KEY_IPV4 key type (the one with "action skbedit priority"). But we have no IS1 filter with the OCELOT_VCAP_KEY_ETYPE key type, and there was an uncaught breakage there. To increase test coverage, convert one of the OCELOT_VCAP_KEY_ANY filters to OCELOT_VCAP_KEY_ETYPE, by making the filter also match on the MAC SA of the traffic sent by mausezahn, $h1_mac. Signed-off-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent f964f83 commit bbb253b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ test_vlan_ingress_modify()
246246
bridge vlan add dev $swp2 vid 300
247247

248248
tc filter add dev $swp1 ingress chain $(IS1 2) pref 3 \
249-
protocol 802.1Q flower skip_sw vlan_id 200 \
249+
protocol 802.1Q flower skip_sw vlan_id 200 src_mac $h1_mac \
250250
action vlan modify id 300 \
251251
action goto chain $(IS2 0 0)
252252

0 commit comments

Comments
 (0)