]> www.infradead.org Git - users/dwmw2/linux.git/commit
wireguard: selftests: load nf_conntrack if not present
authorHangbin Liu <liuhangbin@gmail.com>
Sun, 17 Nov 2024 21:20:29 +0000 (22:20 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 03:32:27 +0000 (19:32 -0800)
commit0290abc9860917f1ee8b58309c2bbd740a39ee8e
tree1518d2bf7898cefb64c9b6f8dc56ab231b1c50a2
parentc1822fb64f678ba5bf04dff2bea361537c6f7278
wireguard: selftests: load nf_conntrack if not present

Some distros may not load nf_conntrack by default, which will cause
subsequent nf_conntrack sets to fail. Load this module if it is not
already loaded.

Fixes: e7096c131e51 ("net: WireGuard secure network tunnel")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
[ Jason: add [[ -e ... ]] check so this works in the qemu harness. ]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://patch.msgid.link/20241117212030.629159-4-Jason@zx2c4.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/wireguard/netns.sh