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:
3b77f67
)
pg: fix crash when multiple streams are enqueuing to the same next
23/17723/2
author
Damjan Marion
<damarion@cisco.com>
Wed, 20 Feb 2019 13:11:51 +0000
(14:11 +0100)
committer
Florin Coras
<florin.coras@gmail.com>
Wed, 20 Feb 2019 16:29:45 +0000
(16:29 +0000)
Only with debug image and when next node is not ethernet-input...
Change-Id: Iaa404b5d35d5c04996ff48cd16877858092b78d7
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vnet/pg/input.c
patch
|
blob
|
history
diff --git
a/src/vnet/pg/input.c
b/src/vnet/pg/input.c
index
138a575
..
019c872
100644
(file)
--- a/
src/vnet/pg/input.c
+++ b/
src/vnet/pg/input.c
@@
-1632,7
+1632,7
@@
pg_generate_packets (vlib_node_runtime_t * node,
int i;
vlib_buffer_t *b;
- for (i = 0; i <
VLIB_FRAME_SIZE - n_left
; i++)
+ for (i = 0; i <
n_this_frame
; i++)
{
b = vlib_get_buffer (vm, to_next[i]);
ASSERT ((b->flags & VLIB_BUFFER_NEXT_PRESENT) == 0 ||