selftests/bpf: add another gso_segs access
authorEric Dumazet <edumazet@google.com>
Tue, 23 Jul 2019 10:15:38 +0000 (03:15 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Jul 2019 21:12:37 +0000 (14:12 -0700)
commitbe69483bf4f3abaaca5d5ba460dbb50239463552
tree1aaff1884ece785915c25780bd7d2f5666c5e941
parent06a22d897d82f12776d44dbf0850f5895469cb2a
selftests/bpf: add another gso_segs access

Use BPF_REG_1 for source and destination of gso_segs read,
to exercise "bpf: fix access to skb_shared_info->gso_segs" fix.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/verifier/ctx_skb.c