selftests: wireguard: load nf_conntrack if it's not present
Subsystems (4)
PATCH v2 1/1 selftests: wireguard: load nf_conntrack if it's not present
Some distros may not load nf_conntrack by default, which will cause subsequent nf_conntrack settings to fail. Let's load this module if it's not loaded by default.
---
v2: load the mode directly in case nf_conntrack is build in (Simon Horman)
--- tools/testing/selftests/wireguard/netns.sh | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/wireguard/netns.sh +1 -0
@@ -66,6 +66,7 @@ cleanup() { orig_message_cost="$(< /proc/sys/net/core/message_cost)" trap cleanup EXIT printf 0 > /proc/sys/net/core/message_cost +modprobe nf_conntrack ip netns del $netns0 2>/dev/null || true ip netns del $netns1 2>/dev/null || true
Signature · 1 line
2.39.5 (Apple Git-154)
Quoted 8 lines · Hangbin Liu
Some distros may not load
nf_conntrackby default, which will cause subsequentnf_conntracksettings to fail. Let's load this module if it's not loaded by default.Fixes e7096c131e51 ("net: WireGuard secure network tunnel")Signed-off-by Hangbin Liu <[email protected]>---
v2: load the mode directly in casenf_conntrackis build in (Simon Horman)
Thanks for the update.
Quoted 6 lines · Hangbin Liu
Some distros may not load
nf_conntrackby default, which will cause subsequentnf_conntracksettings to fail. Let's load this module if it's not loaded by default.Fixes e7096c131e51 ("net: WireGuard secure network tunnel")Signed-off-by Hangbin Liu <[email protected]>
Applied, thanks.