]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net/mlx5: CT: Avoid reusing modify header context for natted entries
authorPaul Blakey <paulb@nvidia.com>
Mon, 19 Apr 2021 12:50:58 +0000 (15:50 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 May 2021 18:54:35 +0000 (11:54 -0700)
commit7fac5c2eced36f335ee19ff316bd3182fbeda823
tree9a6c726c6cc15f9e2dae55078421fd8b9f147c30
parent74097a0dcd1e47d3ccdd066422f28300ad508eee
net/mlx5: CT: Avoid reusing modify header context for natted entries

Currently the driver is designed to reuse header modify context entries.
Natted entries will always have a unique modify header, as such the
modify header hashtable lookup is introducing an overhead. When the
hashtable size exceeded 200k entries the tested insertion rate dropped
from ~10k entries/sec to ~300 entries/sec.

Don't use the re-use mechanism when creating modify headers
for natted tuples.

Signed-off-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c