sfc: neighbour lookup for TC encap action offload
authorEdward Cree <ecree.xilinx@gmail.com>
Thu, 8 Jun 2023 16:42:34 +0000 (17:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Jun 2023 07:11:49 +0000 (00:11 -0700)
commit7e5e7d800011adf4aeda615f8a1bc31c0c1e2bb9
tree68c616d24e64b80de9f3d4719662bce6ae277c03
parentf1363154c47468725611f264fc2e50833800dc3b
sfc: neighbour lookup for TC encap action offload

For each neighbour we're interested in, create a struct efx_neigh_binder
 object which has a list of all the encap_actions using it.  When we
 receive a neighbouring update (through the netevent notifier), find the
 corresponding efx_neigh_binder and update all its users.
Since the actual generation of encap headers is still only a stub, the
 resulting rules still get left on fallback actions.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/ef100_netdev.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/tc.c
drivers/net/ethernet/sfc/tc.h
drivers/net/ethernet/sfc/tc_bindings.c
drivers/net/ethernet/sfc/tc_bindings.h
drivers/net/ethernet/sfc/tc_encap_actions.c
drivers/net/ethernet/sfc/tc_encap_actions.h