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)
commit46e3268eaaca9f8a0f145872b96fe6d54a232890
tree8ef2139e4421af7f64a5aede0c2190c30634dd7c
parent4a3c23ae3acc6185a9d418830f22672a52ff986a
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