]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - samples/bpf/xdpsock_user.c
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)
commitcd9e72b6f21044b36a096833003811c2b2038455
tree499f73f7ea2132ec76efebbcce60eb24021cbd7a
parent695255882bdf63da240db33d0f2aa9ccca1cbe67
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