Revert "vti4: Don't override MTU passed on link creation via IFLA_MTU"
authorGreg Kroah-Hartman <gregkh@google.com>
Wed, 30 May 2018 18:27:15 +0000 (20:27 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 30 May 2018 18:27:15 +0000 (20:27 +0200)
This reverts commit 5815901c29c2936d7acbed2683d5807b4ae53ede which is
03080e5ec727 ("vti4: Don't override MTU passed on link creation via
IFLA_MTU") upstream as it causes test failures.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
net/ipv4/ip_vti.c

index 5c5699c08575da33d6b1668bac06bfccc8ff260f..00d4371d457369f0f03bff69e26e3761e5b29085 100644 (file)
@@ -396,6 +396,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->addr_len           = 4;
        dev->features           |= NETIF_F_LLTX;