dpdk: initialize rte_mbuf during mempool dequeue 63/21863/4
authorDamjan Marion <damarion@cisco.com>
Fri, 6 Sep 2019 12:24:36 +0000 (14:24 +0200)
committerDamjan Marion <dmarion@me.com>
Mon, 16 Sep 2019 17:20:31 +0000 (17:20 +0000)
commitda9513af296b54ac0299206862e9654ae2431bf7
tree1c163fa9dcedd9ffa592b594926742529b3568b7
parent67e4df144b8fd9ef45a188937441ce11260c8b67
dpdk: initialize rte_mbuf during mempool dequeue

In some cases it may happen that buffer is allocated by DPDK, and freed
by VPP native code. In such cases dpdk metadata is not reset, so we need
to do that during mempool dequeue. Template approach is taken to reduce
cost of that operation.

Type: fix
Fixes: 910d369

Change-Id: Ic239007cfc8fbceb965021c56963cda9d53f63be
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/plugins/dpdk/buffer.c
src/vppinfra/error_bootstrap.h