]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Xdp_adjust_tail add grow tail tests
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 14 May 2020 10:51:45 +0000 (12:51 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 May 2020 04:21:57 +0000 (21:21 -0700)
commite7e77941c6f9876e3656b2f6621a031a7293bade
tree0c842b02f62a8b7e2e7bd6f0a91053e652b45f7a
parentfcd7240694966cd1eaccde7d777f70029191d5ef
selftests/bpf: Xdp_adjust_tail add grow tail tests

Extend BPF selftest xdp_adjust_tail with grow tail tests, which is added
as subtest's. The first grow test stays in same form as original shrink
test. The second grow test use the newer bpf_prog_test_run_xattr() calls,
and does extra checking of data contents.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/158945350567.97035.9632611946765811876.stgit@firesoul
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
tools/testing/selftests/bpf/progs/test_xdp_adjust_tail_grow.c [new file with mode: 0644]