]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: DR, Lower sync threshold for ICM hot memory
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Thu, 26 May 2022 07:27:12 +0000 (10:27 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Oct 2022 14:50:40 +0000 (15:50 +0100)
commit133ea373a04399a9443b976a3c82c17afa81591d
tree1ef757694847d2d8f92413a609acac792dae9524
parentfb628b71fb2a93e5346cbd8c80d254683c08e490
net/mlx5: DR, Lower sync threshold for ICM hot memory

Instead of hiding the math in the code, define a value that sets the
fraction of allowed hot memory of ICM pool.
Set the threshold for sync of ICM hot chunks to 1/4 of the pool
instead of 1/2 of the pool. Although we will have more syncs, each
sync will be shorter and will help with insertion rate stability.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c