Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
pg: remove no-recycle option
[vpp.git]
/
src
/
vnet
/
pg
/
cli.c
diff --git
a/src/vnet/pg/cli.c
b/src/vnet/pg/cli.c
index
803db12
..
834ec48
100644
(file)
--- a/
src/vnet/pg/cli.c
+++ b/
src/vnet/pg/cli.c
@@
-267,8
+267,6
@@
pg_pcap_read (pg_stream_t * s, char *file_name)
s->min_packet_bytes = pm.min_packet_bytes;
s->max_packet_bytes = pm.max_packet_bytes;
s->buffer_bytes = pm.max_packet_bytes;
s->min_packet_bytes = pm.min_packet_bytes;
s->max_packet_bytes = pm.max_packet_bytes;
s->buffer_bytes = pm.max_packet_bytes;
- /* For PCAP buffers we never re-use buffers. */
- s->flags |= PG_STREAM_FLAGS_DISABLE_BUFFER_RECYCLE;
if (s->n_packets_limit == 0)
s->n_packets_limit = vec_len (pm.packets_read);
if (s->n_packets_limit == 0)
s->n_packets_limit = vec_len (pm.packets_read);
@@
-387,9
+385,6
@@
new_stream (vlib_main_t * vm,
else if (unformat_user (input, unformat_pg_stream_parameter, &s))
;
else if (unformat_user (input, unformat_pg_stream_parameter, &s))
;
- else if (unformat (input, "no-recycle"))
- s.flags |= PG_STREAM_FLAGS_DISABLE_BUFFER_RECYCLE;
-
else
{
error = clib_error_create ("unknown input `%U'",
else
{
error = clib_error_create ("unknown input `%U'",