]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: ocelot: tc_flower_chains: make test_vlan_ingress_modify() more comprehensive
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 5 Feb 2023 19:24:09 +0000 (21:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Mar 2023 10:52:22 +0000 (11:52 +0100)
commitaa6bfe969e2e8756fd3ee2e25d19f739116a2545
tree919f845bf5cc1159d067c3bbebaf3cd17dec588b
parent6ebba02a3db8f08e7bc7d8204f64bb9becc743f8
selftests: ocelot: tc_flower_chains: make test_vlan_ingress_modify() more comprehensive

[ Upstream commit 3cb3de9ecf5cb1c227656e4daf7c3d9744d707a6 ]

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 <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20230205192409.1796428-2-vladimir.oltean@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh