the config option which determines whether the udp_tunnel module is compiled into the kernel is CONFIG_NET_UDP_TUNNEL. And the CONFIG_NET_UDP_TUNNEL in .config of Ubuntu is M, which should not be loaded into kernel automatically. But the result below shows that the udp_tunnel is loaded into kernel, which is confused to me.
$ modinfo udp_tunnel
filename: /lib/modules/5.3.0-51-generic/kernel/net/ipv4/udp_tunnel.ko
license: GPL
srcversion: 0A315BA6124B0664F4D23FB
depends:
retpoline: Y
intree: Y
name: udp_tunnel
vermagic: 5.3.0-51-generic SMP mod_unload
signat: PKCS#7
signer:
sig_key:
sig_hashalgo: md4
$ echo $?
0
shows the modules udp_tunnel is loaded into the kernel and