OSDN Git Service

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)
commit0c586079f852187d19fea60c9a4981ad29e22ba8
tree1dfc27f6c39267c53f8793823b0e6be099fb7452
parent6acc9b432e6714d72d7d77ec7c27f6f8358d0c71
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