diff mbox series

[bpf-next] selftests/bpf: Enable config options needed for xdp_synproxy test

Message ID 20220620104939.4094104-1-maximmi@nvidia.com
State Accepted
Commit e068c0776b0bbd3fc5a283b0e0eaa1cbb9ef0e3d
Headers show
Series [bpf-next] selftests/bpf: Enable config options needed for xdp_synproxy test | expand

Commit Message

Maxim Mikityanskiy June 20, 2022, 10:49 a.m. UTC
This commit adds the kernel config options needed to run the recently
added xdp_synproxy test. Users without these options will hit errors
like this:

test_synproxy:FAIL:iptables -t raw -I PREROUTING         -i tmp1 -p
tcp -m tcp --syn --dport 8080 -j CT --notrack unexpected error: 256
(errno 22)

Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Suggested-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
---
 tools/testing/selftests/bpf/config | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
index 3b3edc0fc8a6..c05904d631ec 100644
--- a/tools/testing/selftests/bpf/config
+++ b/tools/testing/selftests/bpf/config
@@ -57,3 +57,9 @@  CONFIG_FPROBE=y
 CONFIG_IKCONFIG=y
 CONFIG_IKCONFIG_PROC=y
 CONFIG_MPTCP=y
+CONFIG_NETFILTER_SYNPROXY=y
+CONFIG_NETFILTER_XT_TARGET_CT=y
+CONFIG_NETFILTER_XT_MATCH_STATE=y
+CONFIG_IP_NF_FILTER=y
+CONFIG_IP_NF_TARGET_SYNPROXY=y
+CONFIG_IP_NF_RAW=y