]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: DR, Initialize chunk's ste_arrays at chunk creation
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Wed, 25 May 2022 22:31:27 +0000 (01:31 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Oct 2022 14:50:38 +0000 (15:50 +0100)
commit06ab4a4089d483ec29ddfc9d0503f3468b25f384
tree26b211d13a79ce676726034929f5982ee95dd575
parentb9b81e1e93820eb47aeaf0fe7cdda535adf8e7a4
net/mlx5: DR, Initialize chunk's ste_arrays at chunk creation

Rather than cleaning the corresponding chunk's section of ste_arrays on
chunk deletion, initialize these areas upon chunk creation.

Chunk destruction tend to come in large batches (during pool syncing).
To reduce the "hiccup" in such cases, moving ste_arrays init from chunk
destruction to initialization.

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