aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-01-30 22:15:28 +0100
committerDamjan Marion <damarion@cisco.com>2019-01-30 22:16:19 +0100
commit94519aaed6c1801d1410689c4c6d7823ad7d6357 (patch)
tree2b0098fcc1b85172e34170e7a6526f82b8f6423e /src/plugins/dpdk/device
parent0e2bc63ba99b1ea62dc6f316491fad0b5c206cfa (diff)
buffers: add missing ref_count = 1 in drivers
Change-Id: I6aa030429c1740f7376e95daf82fce49efa6716b Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device')
-rw-r--r--src/plugins/dpdk/device/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/node.c b/src/plugins/dpdk/device/node.c
index 7db66ffab25..eed2736ea61 100644
--- a/src/plugins/dpdk/device/node.c
+++ b/src/plugins/dpdk/device/node.c
@@ -324,6 +324,7 @@ dpdk_device_input (vlib_main_t * vm, dpdk_main_t * dm, dpdk_device_t * xd,
/* as DPDK is allocating empty buffers from mempool provided before interface
start for each queue, it is safe to store this in the template */
bt->buffer_pool_index = xd->buffer_pool_for_queue[queue_id];
+ bt->ref_count = 1;
vnet_buffer (bt)->feature_arc_index = 0;
bt->current_config_index = 0;