]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: CT: Restore ct state from lookup in zone instead of tupleid
authorPaul Blakey <paulb@mellanox.com>
Sun, 29 Mar 2020 10:50:47 +0000 (13:50 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 10 Jul 2020 02:51:14 +0000 (19:51 -0700)
commitc47afa2c5102c9c71f63ea75e24290674ea12276
tree0396595faaa64c4488e4ca37380a4cd20c4f6842
parent9eafe2045c9241bb8294886126c92980023bfc66
net/mlx5e: CT: Restore ct state from lookup in zone instead of tupleid

Remove tupleid, and replace it with zone_restore, which is the zone an
established tuple sets after match. On miss, Use this zone + tuple
taken from the skb, to lookup the ct entry and restore it.

This improves flow insertion rate by avoiding the allocation of a header
rewrite context.

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/rep/tc.c
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