]> 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)
commit4e0935ba720716abf964a995aa6d0e354993261f
tree499f73f7ea2132ec76efebbcce60eb24021cbd7a
parentffa177bfcd5e23852eab6edcdbb7e9f96988dbeb
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