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

The UDP payload fill pattern can be specified using '-P' or '--tx-pkt-pattern'
option. It is an unsigned 32 bit field and defaulted to 0x12345678.

The IP and UDP checksum is calculated by the code as per the content of
the packet before transmission.

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