diff options
| author | Willem de Bruijn <[email protected]> | 2020-03-03 20:05:03 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-03-04 00:23:59 +0000 |
| commit | 62511ceadf6e217f09d4ab1f9198d2bb5cc70e7c (patch) | |
| tree | e7884bbcfc7096d416345e55158d6334f8849825 /tools/testing/selftests/bpf/progs/test_skb_ctx.c | |
| parent | bpf: Sync uapi bpf.h to tools/ (diff) | |
| download | kernel-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/progs/test_skb_ctx.c')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/test_skb_ctx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_skb_ctx.c b/tools/testing/selftests/bpf/progs/test_skb_ctx.c index 202de3938494..b02ea589ce7e 100644 --- a/tools/testing/selftests/bpf/progs/test_skb_ctx.c +++ b/tools/testing/selftests/bpf/progs/test_skb_ctx.c @@ -23,6 +23,8 @@ int process(struct __sk_buff *skb) return 1; if (skb->gso_segs != 8) return 1; + if (skb->gso_size != 10) + return 1; return 0; } |
