sfc: some plumbing towards TC encap action offload
authorEdward Cree <ecree.xilinx@gmail.com>
Thu, 8 Jun 2023 16:42:31 +0000 (17:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Jun 2023 07:11:49 +0000 (00:11 -0700)
commitb4da4235dc69427fbdb66c9fbdf094ac76cdf745
tree675bb710f0b3b78dff1d79f1a9a06bb2dc7b9201
parente16ca7fb9ffb0d51ddf01e450a1043ea65b5be3f
sfc: some plumbing towards TC encap action offload

Create software objects to manage the metadata for encap actions that
 can be attached to TC rules.  However, since we don't yet have the
 neighbouring information (needed to generate the Ethernet header),
 all rules with encap actions are marked as "unready" and thus insert
 the fallback action into hardware rather than actually offloading the
 encapsulation action.

Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/Makefile
drivers/net/ethernet/sfc/tc.c
drivers/net/ethernet/sfc/tc.h
drivers/net/ethernet/sfc/tc_encap_actions.c [new file with mode: 0644]
drivers/net/ethernet/sfc/tc_encap_actions.h [new file with mode: 0644]