Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
c5d9cda
)
Cloned buffer refcount was set to 0
77/2877/3
author
Christophe Fontaine
<
[email protected]
>
Wed, 14 Sep 2016 12:46:35 +0000
(14:46 +0200)
committer
Damjan Marion
<
[email protected]
>
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 <
[email protected]
>
vnet/vnet/dpdk_replication.h
patch
|
blob
|
history
diff --git
a/vnet/vnet/dpdk_replication.h
b/vnet/vnet/dpdk_replication.h
index
07a076c
..
24c1336
100644
(file)
--- 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);