summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/bitfield.h
diff options
context:
space:
mode:
authorEdward Cree <ecree.xilinx@gmail.com>2023-08-07 15:48:11 +0200
committerDavid S. Miller <davem@davemloft.net>2023-08-09 12:14:38 +0200
commit01ad088fb05cb69bb2e061dc2ebddb67c62aeaf4 (patch)
treeec150368482405fc0b0273fce099c79b8cf4974b /drivers/net/ethernet/sfc/bitfield.h
parentsfc: conntrack state matches in TC rules (diff)
downloadlinux-01ad088fb05cb69bb2e061dc2ebddb67c62aeaf4.tar.xz
linux-01ad088fb05cb69bb2e061dc2ebddb67c62aeaf4.zip
sfc: offload left-hand side rules for conntrack
Handle the (comparatively) simple case of a -trk rule on an efx netdev (i.e. not a tunnel decap rule) with ct and goto chain actions. 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>
Diffstat (limited to 'drivers/net/ethernet/sfc/bitfield.h')
-rw-r--r--drivers/net/ethernet/sfc/bitfield.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/bitfield.h b/drivers/net/ethernet/sfc/bitfield.h
index 1f981dfe4bdc..89665fc9b8d0 100644
--- a/drivers/net/ethernet/sfc/bitfield.h
+++ b/drivers/net/ethernet/sfc/bitfield.h
@@ -26,6 +26,8 @@
/* Lowest bit numbers and widths */
#define EFX_DUMMY_FIELD_LBN 0
#define EFX_DUMMY_FIELD_WIDTH 0
+#define EFX_BYTE_0_LBN 0
+#define EFX_BYTE_0_WIDTH 8
#define EFX_WORD_0_LBN 0
#define EFX_WORD_0_WIDTH 16
#define EFX_WORD_1_LBN 16