OSDN Git Service

selftests/bpf: Do not fail build if CONFIG_NF_CONNTRACK=m/n
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Thu, 20 Jan 2022 16:49:32 +0000 (22:19 +0530)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 20 Jan 2022 22:34:50 +0000 (14:34 -0800)
commit1058b6a78db21e3f503362ac4719b3d83b3dd745
tree4bc65ac6cca2eab3ca533b8671667ef8d7f1a1a4
parent8c0be0631d81e48f77d0ebf0534c86e32bef5f89
selftests/bpf: Do not fail build if CONFIG_NF_CONNTRACK=m/n

Some users have complained that selftests fail to build when
CONFIG_NF_CONNTRACK=m. It would be useful to allow building as long as
it is set to module or built-in, even though in case of building as
module, user would need to load it before running the selftest. Note
that this also allows building selftest when CONFIG_NF_CONNTRACK is
disabled.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220120164932.2798544-1-memxor@gmail.com
tools/testing/selftests/bpf/progs/test_bpf_nf.c