From 90d6d096a007277ef5a87b2992bf138886946426 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Tue, 10 Jul 2018 20:07:08 +0100 Subject: Revert "vti4: Don't override MTU passed on link creation via IFLA_MTU" This reverts commit 5a79e43ffa5014c020e0d0f4e383205f87b10111, which was commit 03080e5ec72740c1a62e6730f2a5f3f114f11b19 upstream, as it causes test failures. It should not have been backported to anything older than 4.16. Thanks to Alistair Strachan for debugging this. Cc: Alistair Strachan Signed-off-by: Ben Hutchings --- net/ipv4/ip_vti.c | 1 + 1 file changed, 1 insertion(+) (limited to 'net/ipv4') diff --git a/net/ipv4/ip_vti.c b/net/ipv4/ip_vti.c index b4fc9e710308..778ee1bf40ad 100644 --- a/net/ipv4/ip_vti.c +++ b/net/ipv4/ip_vti.c @@ -359,6 +359,7 @@ static int vti_tunnel_init(struct net_device *dev) memcpy(dev->dev_addr, &iph->saddr, 4); memcpy(dev->broadcast, &iph->daddr, 4); + dev->mtu = ETH_DATA_LEN; dev->flags = IFF_NOARP; dev->iflink = 0; dev->addr_len = 4; -- cgit v1.2.3