From dccbbc298c48956e3184519c415156e3f504d9a9 Mon Sep 17 00:00:00 2001 From: Fred Klassen Date: Mon, 4 Sep 2023 17:31:24 +0000 Subject: [PATCH] Feature #822: rename --batch-size to --xdp-batch-size --- src/tcpreplay_api.c | 2 +- src/tcpreplay_opts.def | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/tcpreplay_api.c b/src/tcpreplay_api.c index 41b32c01..3c14286b 100644 --- a/src/tcpreplay_api.c +++ b/src/tcpreplay_api.c @@ -359,7 +359,7 @@ tcpreplay_post_args(tcpreplay_t *ctx, int argc) goto out; } #ifdef HAVE_LIBXDP - ctx->intf1->batch_size = OPT_VALUE_BATCH_SIZE; + ctx->intf1->batch_size = OPT_VALUE_XDP_BATCH_SIZE; #endif #if defined HAVE_NETMAP ctx->intf1->netmap_delay = ctx->options->netmap_delay; diff --git a/src/tcpreplay_opts.def b/src/tcpreplay_opts.def index 605a6f45..e4a45ead 100644 --- a/src/tcpreplay_opts.def +++ b/src/tcpreplay_opts.def @@ -133,16 +133,6 @@ level for debugging output. Higher numbers increase verbosity. EOText; }; -flag = { - ifdef = HAVE_LIBXDP; - name = batch-size; - arg-type = number; - arg-range = "1->4096"; - descrip = "The maximum number of packets that can be submitted to the AF_XDP TX ring at once"; - arg-default = 25; - doc = "Higher values may improve performance at the cost of burstiness"; -}; - flag = { name = quiet; value = q; @@ -607,6 +597,16 @@ sending packets may cause equally long delays between printing statistics. EOText; }; +flag = { + ifdef = HAVE_LIBXDP; + name = xdp-batch-size; + arg-type = number; + arg-range = "1->4096"; + descrip = "The maximum number of packets that can be submitted to the AF_XDP TX ring at once"; + arg-default = 25; + doc = "Higher values may improve performance at the cost of accuracy"; +}; + flag = { name = version; value = V;