]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Generalize dummy program types
authorJoe Stringer <joe@wand.net.nz>
Tue, 2 Oct 2018 20:35:37 +0000 (13:35 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Oct 2018 00:53:48 +0000 (02:53 +0200)
commit045eb4add84cdac07859da0f5d33078da64d1ba5
tree1dfc27f6c39267c53f8793823b0e6be099fb7452
parent4b8337ef7be8422bb6b57e798638b1608f2b1a6c
selftests/bpf: Generalize dummy program types

Don't hardcode the dummy program types to SOCKET_FILTER type, as this
prevents testing bpf_tail_call in conjunction with other program types.
Instead, use the program type specified in the test case.

Signed-off-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_verifier.c