sfc: support offloading ct(nat) action in RHS rules
authorEdward Cree <ecree.xilinx@gmail.com>
Tue, 10 Oct 2023 21:52:00 +0000 (22:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2023 13:25:03 +0000 (14:25 +0100)
commit0c7fe3b3720ed59219ba3d8079eddc719cb36b35
tree29d42ba01d928ab9566f480c9f7993ce3fbf8fbe
parent38f9a08a3e6a6ad6393c60f82a50bdd0c23478b0
sfc: support offloading ct(nat) action in RHS rules

If an IP address and/or L4 port for NAPT is available from a CT match,
 the MAE will perform the edits; if no CT lookup has been performed for
 this packet, the CT lookup did not return a match, or the matched CT
 entry did not include NAPT, the action will have no effect.

Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/mae.c
drivers/net/ethernet/sfc/tc.c
drivers/net/ethernet/sfc/tc.h