]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ae2aaf86eab530df479a18908cd0e0057777272
tree64e8f170e1e25fc85789bd85730aa3c9ee9a2886
parent89b15b5ea7f2f64ec3077c78fa0005711ede1618
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