summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/pg/input.c2
-rw-r--r--vnet/vnet/pg/stream.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/vnet/vnet/pg/input.c b/vnet/vnet/pg/input.c
index 77b56f528fc..e15faeb8564 100644
--- a/vnet/vnet/pg/input.c
+++ b/vnet/vnet/pg/input.c
@@ -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);
diff --git a/vnet/vnet/pg/stream.c b/vnet/vnet/pg/stream.c
index d0cbab0b68d..1ed7189ffc9 100644
--- a/vnet/vnet/pg/stream.c
+++ b/vnet/vnet/pg/stream.c
@@ -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;