sfc: generate encap headers for TC offload
authorEdward Cree <ecree.xilinx@gmail.com>
Thu, 8 Jun 2023 16:42:35 +0000 (17:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Jun 2023 07:11:50 +0000 (00:11 -0700)
commita1e82162af0b8ae9e65320ca405c6327edb99648
tree350a77f77cf7a3fd4f4b2f9c729c87c23f2974c8
parent7e5e7d800011adf4aeda615f8a1bc31c0c1e2bb9
sfc: generate encap headers for TC offload

Support constructing VxLAN and GENEVE headers, on either IPv4 or IPv6,
 using the neighbouring information obtained in encap->neigh to
 populate the Ethernet header.
Note that the ef100 hardware does not insert UDP checksums when
 performing encap, so for IPv6 the remote endpoint will need to be
 configured with udp6zerocsumrx or equivalent.

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/tc_encap_actions.c