diff options
author | Maxim Mikityanskiy <maximmi@nvidia.com> | 2022-07-08 15:03:19 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-07-09 00:58:45 +0200 |
commit | 24bdfdd2ec343c94adf38fb5bc699f12e543713b (patch) | |
tree | 0f55bb2770d2ff1ff56e3147e2c6524b09066c9a /kernel/trace/rethook.c | |
parent | bpf: Correctly propagate errors up from bpf_core_composites_match (diff) | |
download | linux-24bdfdd2ec343c94adf38fb5bc699f12e543713b.tar.xz linux-24bdfdd2ec343c94adf38fb5bc699f12e543713b.zip |
selftests/bpf: Fix xdp_synproxy build failure if CONFIG_NF_CONNTRACK=m/n
When CONFIG_NF_CONNTRACK=m, struct bpf_ct_opts and enum member
BPF_F_CURRENT_NETNS are not exposed. This commit allows building the
xdp_synproxy selftest in such cases. Note that nf_conntrack must be
loaded before running the test if it's compiled as a module.
This commit also allows this selftest to be successfully compiled when
CONFIG_NF_CONNTRACK is disabled.
One unused local variable of type struct bpf_ct_opts is also removed.
Fixes: fb5cd0ce70d4 ("selftests/bpf: Add selftests for raw syncookie helpers")
Reported-by: Yauheni Kaliuta <ykaliuta@redhat.com>
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220708130319.1016294-1-maximmi@nvidia.com
Diffstat (limited to 'kernel/trace/rethook.c')
0 files changed, 0 insertions, 0 deletions