selftests: net: mscc: ocelot: add test for VLAN modify action
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 8 Oct 2020 11:57:00 +0000 (14:57 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sun, 11 Oct 2020 18:19:04 +0000 (11:19 -0700)
commit82c200be7c4363c1769b32ffea485407af178bb6
treeb2d011c4170a799030e5a705dd5a6c989f6a34e2
parentea440cd2d9b2df64d77b0419fc1e4f53318d5e55
selftests: net: mscc: ocelot: add test for VLAN modify action

Create a test that changes a VLAN ID from 200 to 300.

We also need to modify the preferences of the filters installed for the
other rules so that they are unique, because we now install the "tc-vlan
modify" filter in VCAP IS1 only temporarily, and we need to perform the
deletion by filter preference number.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh