diff options
author | Damjan Marion <damarion@cisco.com> | 2019-02-20 14:15:25 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-02-20 16:29:35 +0000 |
commit | 3b77f67cf4a92dccbfab50764e2d54dbcd4390f2 (patch) | |
tree | ac2b130a483ed71fa871c030bf6c7eca29961f47 /src/vnet/pg | |
parent | a4324a996f34902579338033110d27575a654c8e (diff) |
pg: remove no-recycle option
Change-Id: Ic47bde2d08b2719b5c6c87cb2e9a8af0d2160e6e
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/pg')
-rw-r--r-- | src/vnet/pg/cli.c | 5 | ||||
-rw-r--r-- | src/vnet/pg/pg.h | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/vnet/pg/cli.c b/src/vnet/pg/cli.c index 803db129e00..834ec48192e 100644 --- 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; - /* 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); @@ -387,9 +385,6 @@ new_stream (vlib_main_t * vm, 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'", diff --git a/src/vnet/pg/pg.h b/src/vnet/pg/pg.h index bc3b03b7670..c0e000fe7b2 100644 --- a/src/vnet/pg/pg.h +++ b/src/vnet/pg/pg.h @@ -100,7 +100,6 @@ typedef struct pg_stream_t /* Stream is currently enabled. */ #define PG_STREAM_FLAGS_IS_ENABLED (1 << 0) -#define PG_STREAM_FLAGS_DISABLE_BUFFER_RECYCLE (1 << 1) /* Edit groups are created by each protocol level (e.g. ethernet, ip4, tcp, ...). */ |