summaryrefslogtreecommitdiff
path: root/examples/ip_fragmentation
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2015-04-22 11:57:19 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-04-27 23:06:51 +0200
commit0a0dfd40ed01e3466102170464804b633a4082de (patch)
treeb47b956a0ad5f8d1b650deb6b56c04d203399224 /examples/ip_fragmentation
parent1d493a49490fa90e09689d49280cff0d51d0193e (diff)
downloaddpdk-draft-windows-0a0dfd40ed01e3466102170464804b633a4082de.zip
dpdk-draft-windows-0a0dfd40ed01e3466102170464804b633a4082de.tar.gz
dpdk-draft-windows-0a0dfd40ed01e3466102170464804b633a4082de.tar.xz
examples: always initialize mbuf pool private area
The mbuf pool private area must always be populated in a mbuf pool. The applications or drivers may expect that for a mbuf pool, the mbuf pool private area (mbuf_data_room_size and mbuf_priv_size) are properly filled. Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'examples/ip_fragmentation')
-rw-r--r--examples/ip_fragmentation/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c
index 93ea2a1..cf63718 100644
--- a/examples/ip_fragmentation/main.c
+++ b/examples/ip_fragmentation/main.c
@@ -764,8 +764,8 @@ init_mem(void)
mp = rte_mempool_create(buf, NB_MBUF,
sizeof(struct rte_mbuf), 32,
- 0,
- NULL, NULL,
+ sizeof(struct rte_pktmbuf_pool_private),
+ rte_pktmbuf_pool_init, NULL,
rte_pktmbuf_init, NULL,
socket, 0);
if (mp == NULL) {