Fix vpp crash when generating jumbo packets 75/4075/3
authorJuraj Sloboda <jsloboda@cisco.com>
Fri, 2 Dec 2016 13:37:16 +0000 (14:37 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 5 Dec 2016 09:18:57 +0000 (09:18 +0000)
Change-Id: Ie1832f2b5df9f9f7ba2f0f406116e11014d3ac21
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
vnet/vnet/pg/input.c
vnet/vnet/pg/stream.c

index 77b56f5..e15faeb 100644 (file)
@@ -1248,8 +1248,6 @@ pg_stream_fill_helper (pg_main_t * pg,
        /* set_data */
        DPDK == 1 || (s->flags & PG_STREAM_FLAGS_DISABLE_BUFFER_RECYCLE) != 0);
 
-  /* $$$ this doesn't work at the moment */
-  ASSERT (next_buffers == 0);
   if (next_buffers)
     pg_set_next_buffer_pointers (pg, s, buffers, next_buffers, n_alloc);
 
index d0cbab0..1ed7189 100644 (file)
@@ -422,6 +422,10 @@ pg_stream_add (pg_main_t * pg, pg_stream_t * s_init)
     pg_buffer_index_t *bi;
     int n;
 
+#if DPDK > 0
+    s->buffer_bytes = VLIB_BUFFER_DATA_SIZE;
+#endif
+
     if (!s->buffer_bytes)
       s->buffer_bytes = s->max_packet_bytes;