X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fpg%2Fstream.c;h=ddd15d66406904b27a9c7af3a78b1011230ecb38;hb=671e60e65635b8d030bf303c88411192c747b59e;hp=bf0eac370aa678c7360a20e76caf708136b912b0;hpb=b0f662fe93f1db0098f7b50306c2f084644788b1;p=vpp.git diff --git a/src/vnet/pg/stream.c b/src/vnet/pg/stream.c index bf0eac370aa..ddd15d66406 100644 --- a/src/vnet/pg/stream.c +++ b/src/vnet/pg/stream.c @@ -435,17 +435,13 @@ pg_stream_add (pg_main_t * pg, pg_stream_t * s_init) s->last_increment_packet_size = s->min_packet_bytes; { - pg_buffer_index_t *bi; int n; - s->buffer_bytes = VLIB_BUFFER_DEFAULT_FREE_LIST_BYTES; + s->buffer_bytes = VLIB_BUFFER_DATA_SIZE; n = s->max_packet_bytes / s->buffer_bytes; n += (s->max_packet_bytes % s->buffer_bytes) != 0; vec_resize (s->buffer_indices, n); - - vec_foreach (bi, s->buffer_indices) - bi->free_list_index = VLIB_BUFFER_DEFAULT_FREE_LIST_INDEX; } /* Find an interface to use. */