]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: xdpsock: Add option to specify number of packets to send
authorJay Jayatheerthan <jay.jayatheerthan@intel.com>
Fri, 20 Dec 2019 08:55:28 +0000 (14:25 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 21 Dec 2019 00:10:39 +0000 (16:10 -0800)
commit26ca27ea86d29a3d1e0780fbd0df5b28b3f0377e
treef8db82bdb2b120deb34011b6f2bbd7bd584868bc
parent4e0935ba720716abf964a995aa6d0e354993261f
samples/bpf: xdpsock: Add option to specify number of packets to send

Use '-C' or '--tx-pkt-count' to specify number of packets to send.
If it is not specified, the application sends packets forever. If packet
count is not a multiple of batch size, last batch sent is less than the
batch size.

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-5-jay.jayatheerthan@intel.com
samples/bpf/xdpsock_user.c