OSDN Git Service

net/mlx5e: CT: Fix offload with CT action after CT NAT action
authorRoi Dayan <roid@mellanox.com>
Sun, 12 Apr 2020 12:39:15 +0000 (15:39 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 15 May 2020 22:44:27 +0000 (15:44 -0700)
commit9102d836d296fbc94517736d2dd1131ad6b01740
tree1cd70cce2a74650eb0e71506fa71ef02c090b512
parent90bf1c8dbdc52d08a18c9c1fb2b847999159e3a2
net/mlx5e: CT: Fix offload with CT action after CT NAT action

It could be a chain of rules will do action CT again after CT NAT
Before this fix matching will break as we get into the CT table
after NAT changes and not CT NAT.
Fix this by adding pre ct and pre ct nat tables to skip ct/ct_nat
tables and go straight to post_ct table if ct/nat was already done.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c