net/mlx5e: CT: Don't offload tuple rewrites for established tuples
authorPaul Blakey <paulb@mellanox.com>
Wed, 22 Apr 2020 15:00:25 +0000 (18:00 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 10 Jul 2020 02:51:14 +0000 (19:51 -0700)
commit7e36feeb04676c7eed0b3fe9196543608bc7ecae
tree64e8f170e1e25fc85789bd85730aa3c9ee9a2886
parent3d486ec4fa87a80a57bc588d4520f7d2e866fbc0
net/mlx5e: CT: Don't offload tuple rewrites for established tuples

Next patches will remove the tupleid registers that is used
to restore the ct state on miss, and instead use the tuple on
the missed packet to lookup which state to restore.
Disable tuple rewrites after connection tracking.

For tuple rewrites, inject a ct_state=-trk match so it won't
change the tuple for established flows (+trk) that passed connection
tracking, and instead miss to software.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h