]> asedeno.scripts.mit.edu Git - linux.git/commit
bpf: test_sockmap add options to use msg_push_data
authorJohn Fastabend <john.fastabend@gmail.com>
Sat, 20 Oct 2018 02:56:51 +0000 (19:56 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 20 Oct 2018 19:37:12 +0000 (21:37 +0200)
commit84fbfe026acaa6d91e2f71f1635992bf472e2496
treee355a84970cff01d0b2b1182d6cb58e063dbff26
parentf908d26b2c41d9a924371099c4979e4b5d385165
bpf: test_sockmap add options to use msg_push_data

Add options to run msg_push_data, this patch creates two more flags
in test_sockmap that can be used to specify the offset and length
of bytes to be added. The new options are --txmsg_start_push to
specify where bytes should be inserted and --txmsg_end_push to
specify how many bytes. This is analagous to the options that are
used to pull data, --txmsg_start and --txmsg_end.

In addition to adding the options tests are added to the test
suit to run the tests similar to what was done for msg_pull_data.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_sockmap.c
tools/testing/selftests/bpf/test_sockmap_kern.h