diff options
author | Christophe Fontaine <christophe.fontaine@qosmos.com> | 2016-09-14 14:46:35 +0200 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-09-19 11:55:02 +0000 |
commit | 16b7aaafac0bd06a9c330457eea9f6f674906606 (patch) | |
tree | 79f021d741c0f27fdedf125fa5e1f3e37e871889 | |
parent | c5d9cdab8ec3a635311c3554f9ce6078c938a5d4 (diff) |
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 <christophe.fontaine@qosmos.com>
-rw-r--r-- | vnet/vnet/dpdk_replication.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |