Re: [PATCH net-next v10 05/13] net: ip_tunnel: Don't set tunnel->net in ip_tunnel_init()
Kuniyuki Iwashima <[email protected]>
| Newsgroups | gmane.linux.network.bridge,gmane.org.freifunk.batman,gmane.linux.kernel.bpf,gmane.linux.can,gmane.linux.kernel,gmane.linux.ppp,gmane.linux.drivers.rdma,gmane.linux.kernel.wireless.general,gmane.linux.network,gmane.network.wireguard |
|---|---|
| Message-ID | <[email protected]> |
From: Xiao Liang <[email protected]> Date: Wed, 19 Feb 2025 20:50:31 +0800 > ip_tunnel_init() is called from register_netdevice(). In all code paths > reaching here, tunnel->net should already have been set (either in > ip_tunnel_newlink() or __ip_tunnel_create()). So don't set it again. > > Signed-off-by: Xiao Liang <[email protected]> Reviewed-by: Kuniyuki Iwashima <[email protected]>