selftests/bpf: Test wire_len/gso_segs in BPF_PROG_TEST_RUN
authorStanislav Fomichev <sdf@google.com>
Fri, 13 Dec 2019 22:30:28 +0000 (14:30 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Dec 2019 23:26:53 +0000 (15:26 -0800)
commita06bf42f5a95ff462401d59d0c08cf4620213647
treed36902bf1ad4a97c511b6b5ae6a383341824291e
parent850a88cc4096fe1df407452ba2e4d28cf5b3eee9
selftests/bpf: Test wire_len/gso_segs in BPF_PROG_TEST_RUN

Make sure we can pass arbitrary data in wire_len/gso_segs.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191213223028.161282-2-sdf@google.com
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
tools/testing/selftests/bpf/progs/test_skb_ctx.c