net: prestera: acl: add multi-chain support offload
authorVolodymyr Mytnyk <vmytnyk@marvell.com>
Mon, 14 Feb 2022 08:20:06 +0000 (10:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Feb 2022 14:11:43 +0000 (14:11 +0000)
commitfa5d824ce5dd8306c66f45c34fd78536e6ce2488
tree7b223b2842a3a45296658cd0c3aa3b3cfca99ee3
parente81f1e0de816bf16756ffa269fb7bce8383c13c2
net: prestera: acl: add multi-chain support offload

Add support of rule offloading added to the non-zero index chain,
which was previously forbidden. Also, goto action is offloaded
allowing to jump for processing of desired chain.

Note that only implicit chain 0 is bound to the device port(s) for
processing. The rest of chains have to be jumped by actions.

Signed-off-by: Volodymyr Mytnyk <vmytnyk@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/prestera/prestera_acl.c
drivers/net/ethernet/marvell/prestera/prestera_acl.h
drivers/net/ethernet/marvell/prestera/prestera_flow.c
drivers/net/ethernet/marvell/prestera/prestera_flow.h
drivers/net/ethernet/marvell/prestera/prestera_flower.c
drivers/net/ethernet/marvell/prestera/prestera_flower.h
drivers/net/ethernet/marvell/prestera/prestera_hw.c