From: Suanming Mou Date: Tue, 13 Jul 2021 08:44:58 +0000 (+0300) Subject: net/mlx5: change memory release configuration X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cde19e86349fff9e6a02a509dea672d06b87a49b;p=dpdk.git net/mlx5: change memory release configuration This commit changes the index pool memory release configuration to 0 when memory reclaim mode is not required. Signed-off-by: Suanming Mou Acked-by: Matan Azrad --- diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index f79a094a35..021a34dd4d 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -798,6 +798,8 @@ mlx5_flow_ipool_create(struct mlx5_dev_ctx_shared *sh, if (config->reclaim_mode) { cfg.release_mem_en = 1; cfg.per_core_cache = 0; + } else { + cfg.release_mem_en = 0; } sh->ipool[i] = mlx5_ipool_create(&cfg); }