OSDN Git Service

selftests/bpf: Generalize dummy program types
authorJoe Stringer <joe@wand.net.nz>
Wed, 2 Jun 2021 03:27:47 +0000 (11:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jun 2021 11:24:07 +0000 (13:24 +0200)
commitb6c9e3b46c3a4c78799ac550176856e7ff5e313c
tree4c4a0b4beb5a9cb6babf213c55fad420b51b9c91
parentac0985c8a2d8f829e7f6dfcdd543f32dd29747b7
selftests/bpf: Generalize dummy program types

commit 0c586079f852187d19fea60c9a4981ad29e22ba8 upstream

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>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/test_verifier.c