diff options
author | Benoît Ganne <bganne@cisco.com> | 2020-05-19 14:15:41 +0200 |
---|---|---|
committer | Benoît Ganne <bganne@cisco.com> | 2020-05-20 07:10:35 +0000 |
commit | 00b060a778a72c9e436b537a08ca6cb41094a3e2 (patch) | |
tree | 7261d29e15e06e458555c0764e785716add88c68 /src | |
parent | a3674c0e1890a892249c76e147ced8f7d1e98df9 (diff) |
dpdk: fix pktmbuf pool private data init
Type: fix
Change-Id: I7349840af48eec209532dab43a8ad0bd68993268
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit c32a84c70efb45081568fc8aa5fa1884d74865fe)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/dpdk/buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dpdk/buffer.c b/src/plugins/dpdk/buffer.c index fdd5cbd5c55..575660ba7f5 100644 --- a/src/plugins/dpdk/buffer.c +++ b/src/plugins/dpdk/buffer.c @@ -91,6 +91,7 @@ dpdk_buffer_pool_init (vlib_main_t * vm, vlib_buffer_pool_t * bp) rte_mempool_set_ops_byname (nmp, "vpp-no-cache", NULL); /* Call the mempool priv initializer */ + memset (&priv, 0, sizeof (priv)); priv.mbuf_data_room_size = VLIB_BUFFER_PRE_DATA_SIZE + vlib_buffer_get_default_data_size (vm); priv.mbuf_priv_size = VLIB_BUFFER_HDR_SIZE; |