summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-02-20 14:11:51 +0100
committerFlorin Coras <florin.coras@gmail.com>2019-02-20 16:29:45 +0000
commit2768cdc0986dfaccc2da67a57ba08e557f811dcf (patch)
tree073e7b57997d3221df32725b7074b193d0fdd69b /src
parent3b77f67cf4a92dccbfab50764e2d54dbcd4390f2 (diff)
pg: fix crash when multiple streams are enqueuing to the same next
Only with debug image and when next node is not ethernet-input... Change-Id: Iaa404b5d35d5c04996ff48cd16877858092b78d7 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/pg/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/pg/input.c b/src/vnet/pg/input.c
index 138a5757c83..019c872ed5d 100644
--- 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 ||