selftests/bpf: Extend test_pkt_access test
authorAlexei Starovoitov <ast@kernel.org>
Thu, 14 Nov 2019 18:57:19 +0000 (10:57 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 15 Nov 2019 22:45:50 +0000 (23:45 +0100)
commit4c0963243c5f56bffe8eaba6acc5b076d51797f4
treedcf2b3e9e78fc78843bb1c0b28287309049feb4d
parente7bf94dbb882b7d679a6a18e40e4f28076eb249f
selftests/bpf: Extend test_pkt_access test

The test_pkt_access.o is used by multiple tests. Fix its section name so that
program type can be automatically detected by libbpf and make it call other
subprograms with skb argument.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191114185720.1641606-20-ast@kernel.org
tools/testing/selftests/bpf/progs/test_pkt_access.c