summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/avf/input.c1
-rw-r--r--src/plugins/dpdk/device/node.c1
-rw-r--r--src/plugins/memif/node.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/avf/input.c b/src/plugins/avf/input.c
index beb5c052423..32fa593dde6 100644
--- a/src/plugins/avf/input.c
+++ b/src/plugins/avf/input.c
@@ -371,6 +371,7 @@ no_more_desc:
vnet_buffer (bt)->sw_if_index[VLIB_RX] = ad->sw_if_index;
vnet_buffer (bt)->sw_if_index[VLIB_TX] = ~0;
bt->buffer_pool_index = rxq->buffer_pool_index;
+ bt->ref_count = 1;
if (n_tail_desc)
n_rx_bytes = avf_process_rx_burst (vm, node, ptd, n_rx_packets, 1);
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;
diff --git a/src/plugins/memif/node.c b/src/plugins/memif/node.c
index 347112892be..c78a728bacd 100644
--- a/src/plugins/memif/node.c
+++ b/src/plugins/memif/node.c
@@ -345,6 +345,7 @@ memif_device_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
ptd->buffer_template.current_data = start_offset;
ptd->buffer_template.current_config_index = 0;
ptd->buffer_template.buffer_pool_index = mq->buffer_pool_index;
+ ptd->buffer_template.ref_count = 1;
if (mode == MEMIF_INTERFACE_MODE_ETHERNET)
{