]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: xdpsock: Add option to specify batch size
authorJay Jayatheerthan <jay.jayatheerthan@intel.com>
Fri, 20 Dec 2019 08:55:27 +0000 (14:25 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 21 Dec 2019 00:10:39 +0000 (16:10 -0800)
commitca67fdd7c401fbb933a87066756ebbb59bdc8dbc
tree499f73f7ea2132ec76efebbcce60eb24021cbd7a
parent25e3eddf768a4b57a9a88d508a2e18b1f4692733
samples/bpf: xdpsock: Add option to specify batch size

New option to specify batch size for tx, rx and l2fwd has been added. This
allows fine tuning to maximize performance. It is specified using '-b' or
'--batch_size' options. When not specified default is 64.

Signed-off-by: Jay Jayatheerthan <jay.jayatheerthan@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191220085530.4980-4-jay.jayatheerthan@intel.com
samples/bpf/xdpsock_user.c