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)
commita8eb919ba659adcbed8fd782b3e9a949c3a65b9c
tree0396595faaa64c4488e4ca37380a4cd20c4f6842
parent7e36feeb04676c7eed0b3fe9196543608bc7ecae
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