]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: DR, Allocate icm_chunks from their own slab allocator
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Wed, 25 May 2022 22:44:18 +0000 (01:44 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Oct 2022 14:50:39 +0000 (15:50 +0100)
commitfd785e5213f012ec086fd93319b9e154caae6ddc
treec8c5912cfedcf68b9b5a38ce269b1e3eb9ee4076
parent17b56073a0668a153f0e1051dc1bf60960f74810
net/mlx5: DR, Allocate icm_chunks from their own slab allocator

SW steering allocates/frees lots of icm_chunk structs. To make this more
efficiently, create a separate kmem_cache and allocate these chunks from
this allocator.
By doing this we observe that the alloc/free "hiccups" frequency has
become much lower, which allows for a more steady rule insersion rate.

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_domain.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h