aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/avf
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/avf
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/avf')
-rw-r--r--src/plugins/avf/input.c1
1 files changed, 1 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);