aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorWillem de Bruijn <[email protected]>2020-03-03 20:05:03 +0000
committerAlexei Starovoitov <[email protected]>2020-03-04 00:23:59 +0000
commit62511ceadf6e217f09d4ab1f9198d2bb5cc70e7c (patch)
treee7884bbcfc7096d416345e55158d6334f8849825 /tools/testing/selftests/bpf/prog_tests
parentbpf: Sync uapi bpf.h to tools/ (diff)
downloadkernel-62511ceadf6e217f09d4ab1f9198d2bb5cc70e7c.tar.gz
kernel-62511ceadf6e217f09d4ab1f9198d2bb5cc70e7c.zip
selftests/bpf: Test new __sk_buff field gso_size
Analogous to the gso_segs selftests introduced in commit d9ff286a0f59 ("bpf: allow BPF programs access skb_shared_info->gso_segs field"). Signed-off-by: Willem de Bruijn <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/skb_ctx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/skb_ctx.c b/tools/testing/selftests/bpf/prog_tests/skb_ctx.c
index c6d6b685a946..4538bd08203f 100644
--- a/tools/testing/selftests/bpf/prog_tests/skb_ctx.c
+++ b/tools/testing/selftests/bpf/prog_tests/skb_ctx.c
@@ -14,6 +14,7 @@ void test_skb_ctx(void)
.wire_len = 100,
.gso_segs = 8,
.mark = 9,
+ .gso_size = 10,
};
struct bpf_prog_test_run_attr tattr = {
.data_in = &pkt_v4,