summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarman Kalra <hkalra@marvell.com>2019-07-10 09:22:25 +0000
committerThomas Monjalon <thomas@monjalon.net>2019-07-11 00:19:37 +0200
commit0c4d3e4268576ce31c11e6d09d819b43592c1323 (patch)
treecd4fbef586901d9ec630a7df31f61f06abf962a4
parent018faf21d670e06d51beb52e1c3c12192a762339 (diff)
downloaddpdk-0c4d3e4268576ce31c11e6d09d819b43592c1323.zip
dpdk-0c4d3e4268576ce31c11e6d09d819b43592c1323.tar.gz
dpdk-0c4d3e4268576ce31c11e6d09d819b43592c1323.tar.xz
app/pdump: enforce to use SW mempool
A secondary process cannot access HW mempool already initiazed by primary, and neither it can setup its own HW mempool due to its own restrictions. Since dpdk-pdump creates mempool for managing its local mbufs, SW mempool is capable enough to solve this purpose. Signed-off-by: Harman Kalra <hkalra@marvell.com>
-rw-r--r--app/pdump/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/pdump/main.c b/app/pdump/main.c
index 80dc924..cd0986a 100644
--- a/app/pdump/main.c
+++ b/app/pdump/main.c
@@ -604,11 +604,11 @@ create_mp_ring_vdev(void)
mbuf_pool = rte_mempool_lookup(mempool_name);
if (mbuf_pool == NULL) {
/* create mempool */
- mbuf_pool = rte_pktmbuf_pool_create(mempool_name,
+ mbuf_pool = rte_pktmbuf_pool_create_by_ops(mempool_name,
pt->total_num_mbufs,
MBUF_POOL_CACHE_SIZE, 0,
pt->mbuf_data_size,
- rte_socket_id());
+ rte_socket_id(), "ring_mp_mc");
if (mbuf_pool == NULL) {
cleanup_rings();
rte_exit(EXIT_FAILURE,