summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2016-06-01 16:04:21 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2016-07-27 13:50:41 +0100
commitcf92112277ca234964f7bbbfdb7ca732c503068c (patch)
tree2ac12cacd9c706f2b2ef34f0fe6acd95124f9582
parent0f2a027e4b41d972434a206fe20d4c53a7263024 (diff)
downloadspp-cf92112277ca234964f7bbbfdb7ca732c503068c.zip
spp-cf92112277ca234964f7bbbfdb7ca732c503068c.tar.gz
spp-cf92112277ca234964f7bbbfdb7ca732c503068c.tar.xz
spp_vm: remove duplicated pktmbuf_pool creation code
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Sy Jong Choi <sy.jong.choi@intel.com>
-rw-r--r--examples/multi_process/patch_panel/vm/init.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/multi_process/patch_panel/vm/init.c b/examples/multi_process/patch_panel/vm/init.c
index 3180a07..fc444d7 100644
--- a/examples/multi_process/patch_panel/vm/init.c
+++ b/examples/multi_process/patch_panel/vm/init.c
@@ -76,16 +76,6 @@ init_mbuf_pools(void)
rte_pktmbuf_pool_init, NULL, rte_pktmbuf_init, NULL,
rte_socket_id(), NO_FLAGS);
}
- if (pktmbuf_pool == NULL) {
- RTE_LOG(INFO, APP, "Creating mbuf pool '%s' [%u mbufs] ...\n",
- VM_PKTMBUF_POOL_NAME, num_mbufs);
-
- pktmbuf_pool = rte_mempool_create(VM_PKTMBUF_POOL_NAME,
- num_mbufs, MBUF_SIZE, MBUF_CACHE_SIZE,
- sizeof(struct rte_pktmbuf_pool_private),
- rte_pktmbuf_pool_init, NULL, rte_pktmbuf_init, NULL,
- rte_socket_id(), NO_FLAGS);
- }
return (pktmbuf_pool == NULL); /* 0 on success */
}