Cloned buffer refcount was set to 0 77/2877/3
authorChristophe Fontaine <christophe.fontaine@qosmos.com>
Wed, 14 Sep 2016 12:46:35 +0000 (14:46 +0200)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 19 Sep 2016 11:55:02 +0000 (11:55 +0000)
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 <christophe.fontaine@qosmos.com>
vnet/vnet/dpdk_replication.h

index 07a076c..24c1336 100644 (file)
@@ -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);