From 16b7aaafac0bd06a9c330457eea9f6f674906606 Mon Sep 17 00:00:00 2001 From: Christophe Fontaine Date: Wed, 14 Sep 2016 14:46:35 +0200 Subject: Cloned buffer refcount was set to 0 The cloned buffer returned by rte_mempool_get_bulk had a refcount set to 0. This triggered an assert in drop-punt node. Change-Id: I77f53abd72dcdbf5dd512a05e13fe6d3fd569843 Signed-off-by: Christophe Fontaine --- vnet/vnet/dpdk_replication.h | 1 + 1 file changed, 1 insertion(+) diff --git a/vnet/vnet/dpdk_replication.h b/vnet/vnet/dpdk_replication.h index 07a076c1c7f..24c133619e9 100644 --- a/vnet/vnet/dpdk_replication.h +++ b/vnet/vnet/dpdk_replication.h @@ -87,6 +87,7 @@ vlib_dpdk_clone_buffer (vlib_main_t * vm, vlib_buffer_t * b) if (rte_mempool_get_bulk (rmp, (void **) rte_mbufs, 1) < 0) return 0; + rte_pktmbuf_refcnt_update (rte_mbufs[0], 1); rv = vlib_buffer_from_rte_mbuf (rte_mbufs[0]); vlib_buffer_init_for_free_list (rv, fl); -- cgit 1.2.3-korg