Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix IP feature ordering.
[vpp.git]
/
src
/
vnet
/
pg
/
stream.c
diff --git
a/src/vnet/pg/stream.c
b/src/vnet/pg/stream.c
index
c46875e
..
05d820a
100644
(file)
--- a/
src/vnet/pg/stream.c
+++ b/
src/vnet/pg/stream.c
@@
-223,10
+223,6
@@
pg_interface_add_or_get (pg_main_t * pg, uword if_id)
CLIB_CACHE_LINE_BYTES);
*pi->lockp = 0;
}
CLIB_CACHE_LINE_BYTES);
*pi->lockp = 0;
}
-
- ip4_sw_interface_enable_disable (pi->hw_if_index, 1);
- ip6_sw_interface_enable_disable (pi->hw_if_index, 1);
- mpls_sw_interface_enable_disable (&mpls_main, pi->hw_if_index, 1);
}
return i;
}
return i;
@@
-442,9
+438,8
@@
pg_stream_add (pg_main_t * pg, pg_stream_t * s_init)
pg_buffer_index_t *bi;
int n;
pg_buffer_index_t *bi;
int n;
-#if DPDK > 0
- s->buffer_bytes = VLIB_BUFFER_DATA_SIZE;
-#endif
+ if (vm->buffer_main->extern_buffer_mgmt)
+ s->buffer_bytes = VLIB_BUFFER_DATA_SIZE;
if (!s->buffer_bytes)
s->buffer_bytes = s->max_packet_bytes;
if (!s->buffer_bytes)
s->buffer_bytes = s->max_packet_bytes;