mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
selftests: net: fou_mcast_encap: load the fou module
setup_ipv4() creates a GRETAP tunnel with FOU encap and configures a FOU port via "ip fou add". Both require the fou module, which cannot be auto-loaded. The test assumes CONFIG_NET_FOU=y, which matches the default selftests config, but fails on kernels built with CONFIG_NET_FOU=m. Without the fou module, tunnel creation fails and the test reports a false failure with 0/100 received packets: RTNETLINK answers: Invalid argument TEST: FOU/GRETAP IPv4 multicast encap resubmit (received 0/100) [FAIL] Load the fou module and skip the subtest cleanly when unavailable. This matches the existing fou6 handling in this script and the pattern used in pmtu.sh. modprobe is a no-op when CONFIG_NET_FOU=y, so default selftest builds remain unchanged. Signed-off-by: Qingshuang Fu <fuqingshuang@kylinos.cn> Link: https://patch.msgid.link/20260917033049.792209-1-fuqingshuang@kylinos.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
4c1b44ac22
commit
6e0ee63cd2
1 changed files with 7 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue