]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite78763856f6ad49ac12ac91a571aec32ccd52277
treeb2d011c4170a799030e5a705dd5a6c989f6a34e2
parent8c873a2011959a85b4031269997aa9ce46ba7ebd
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