Fix vpp crash when generating jumbo packets

Change-Id: Ie1832f2b5df9f9f7ba2f0f406116e11014d3ac21
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
This commit is contained in:
Juraj Sloboda
2016-12-02 14:37:16 +01:00
committed by Damjan Marion
parent c90dfdcf4f
commit e3371afc8a
2 changed files with 4 additions and 2 deletions

View 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);

View 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;