sfc: handle non-zero chain_index on TC rules
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 7 Aug 2023 13:48:09 +0000 (14:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Aug 2023 10:14:38 +0000 (11:14 +0100)
commit29416025185383aba51d863b9e9eff234b54d855
tree22c463f43c156ff6884a69656526a6003a22b063
parent1909387fcfcfc9197a0adcaa9702967e5c18f812
sfc: handle non-zero chain_index on TC rules

Map it to an 8-bit recirc_id for use by the hardware.
Currently nothing in the driver is offloading 'goto chain' actions,
 so these rules cannot yet be hit.

Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/tc.c
drivers/net/ethernet/sfc/tc.h
drivers/net/ethernet/sfc/tc_conntrack.c
drivers/net/ethernet/sfc/tc_conntrack.h