Skip to content

Commit 78ff4be

Browse files
klassertdavem330
authored andcommitted
ip_tunnel: Initialize the fallback device properly
We need to initialize the fallback device to have a correct mtu set on this device. Otherwise the mtu is set to null and the device is unusable. Fixes: fd58156 ("IPIP: Use ip-tunneling code.") Cc: Pravin B Shelar <[email protected]> Signed-off-by: Steffen Klassert <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d8d33c3 commit 78ff4be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv4/ip_tunnel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,7 @@ int ip_tunnel_init_net(struct net *net, int ip_tnl_net_id,
883883
*/
884884
if (!IS_ERR(itn->fb_tunnel_dev)) {
885885
itn->fb_tunnel_dev->features |= NETIF_F_NETNS_LOCAL;
886+
itn->fb_tunnel_dev->mtu = ip_tunnel_bind_dev(itn->fb_tunnel_dev);
886887
ip_tunnel_add(itn, netdev_priv(itn->fb_tunnel_dev));
887888
}
888889
rtnl_unlock();

0 commit comments

Comments
 (0)