sfc: MAE functions to create/update/delete encap headers
authorEdward Cree <ecree.xilinx@gmail.com>
Thu, 8 Jun 2023 16:42:33 +0000 (17:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Jun 2023 07:11:49 +0000 (00:11 -0700)
commitf1363154c47468725611f264fc2e50833800dc3b
tree2e5dbb87c63886a595c8f42544322c8b9340812c
parent69819d3bc4086dd5a268600d1cbd65c39eda1672
sfc: MAE functions to create/update/delete encap headers

Besides the raw header data, also pass the tunnel type, so that the
 hardware knows it needs to update the IP Total Length and UDP Length
 fields (and corresponding checksums) for each packet.
Also, populate the ENCAP_HEADER_ID field in efx_mae_alloc_action_set()
 with the fw_id returned from efx_mae_allocate_encap_md().

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/mae.c
drivers/net/ethernet/sfc/mae.h