git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3020a3
)
net/mlx5: change memory release configuration
author
Suanming Mou
<suanmingm@nvidia.com>
Tue, 13 Jul 2021 08:44:58 +0000
(11:44 +0300)
committer
Raslan Darawsheh
<rasland@nvidia.com>
Thu, 15 Jul 2021 14:09:22 +0000
(16:09 +0200)
This commit changes the index pool memory release configuration
to 0 when memory reclaim mode is not required.
Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx5/mlx5.c
b/drivers/net/mlx5/mlx5.c
index
f79a094
..
021a34d
100644
(file)
--- 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);
}