net/mlx5e: CT, optimize pre_ct table lookup
authorOz Shlomo <ozsh@nvidia.com>
Mon, 31 Oct 2022 09:00:30 +0000 (09:00 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 12 Nov 2022 10:20:20 +0000 (02:20 -0800)
commit05bb74c29d84dc6d26f57f5ed3970ab8aeb13551
tree9e84eb418e7422ab1b97111743d80538de4bf9e5
parent341361533011945f0a7da85632662a5879233853
net/mlx5e: CT, optimize pre_ct table lookup

The pre_ct table realizes in hardware the act_ct cache logic, bypassing
the CT table if the ct state was already set by a previous ct lookup.
As such, the pre_ct table will always miss for chain 0 filters.

Optimize the pre_ct table lookup for rules installed on chain 0.

Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c