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)
commit7ae2e00e8fc23f10169079fadd388317d81012be
tree0c842b02f62a8b7e2e7bd6f0a91053e652b45f7a
parent68545fb6f2ff621de26d96a3f15868abfb6897b0
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]