]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: offload tc action "ok" using an empty action vector
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 22 May 2022 09:27:01 +0000 (12:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 21:15:19 +0000 (22:15 +0100)
commit6a3d308cbcbcb3472b60436d7ec73a7a3763ffa4
treee66ad28ee5d221878672c90e4d7d32183245cb3c
parent8e065db0beb3495830bcf10d4496df690c9c9f43
net: mscc: ocelot: offload tc action "ok" using an empty action vector

The "ok" tc action is useful when placed in front of a more generic
filter to exclude some more specific rules from matching it.

The ocelot switches can offload this tc action by creating an empty
action vector (no _ENA fields set to 1). This makes sense for all of
VCAP IS1, IS2 and ES0 (but not for PSFP).

Add support for this action. Note that this makes the
gact_drop_and_ok_test() selftest pass, where "action ok" is used in
front of an "action drop" rule, both offloaded to VCAP IS2.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_flower.c