Skip to content

Commit

Permalink
Feature #822: rename --batch-size to --xdp-batch-size
Browse files Browse the repository at this point in the history
  • Loading branch information
fklassen committed Sep 4, 2023
1 parent 4f33fbf commit dccbbc2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/tcpreplay_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
20 changes: 10 additions & 10 deletions src/tcpreplay_opts.def
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit dccbbc2

Please sign in to comment.