diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2018-03-15 12:16:29 -0400 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2018-03-19 03:45:50 -0400 |
commit | 03080e5ec72740c1a62e6730f2a5f3f114f11b19 (patch) | |
tree | c49fa8d533f8378e7900b7d6c5dc0f8e110fedea /net | |
parent | 24fc79798b8ddfd46f2dd363a8d29072c083b977 (diff) |
vti4: Don't override MTU passed on link creation via IFLA_MTU
Don't hardcode a MTU value on vti tunnel initialization,
ip_tunnel_newlink() is able to deal with this already. See also
commit ffc2b6ee4174 ("ip_gre: fix IFLA_MTU ignored on NEWLINK").
Fixes: 1181412c1a67 ("net/ipv4: VTI support new module for ip_vti.")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Acked-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ip_vti.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/ip_vti.c b/net/ipv4/ip_vti.c index 502e5222eaa9..3f091ccad9af 100644 --- a/net/ipv4/ip_vti.c +++ b/net/ipv4/ip_vti.c | |||
@@ -387,7 +387,6 @@ static int vti_tunnel_init(struct net_device *dev) | |||
387 | memcpy(dev->dev_addr, &iph->saddr, 4); | 387 | memcpy(dev->dev_addr, &iph->saddr, 4); |
388 | memcpy(dev->broadcast, &iph->daddr, 4); | 388 | memcpy(dev->broadcast, &iph->daddr, 4); |
389 | 389 | ||
390 | dev->mtu = ETH_DATA_LEN; | ||
391 | dev->flags = IFF_NOARP; | 390 | dev->flags = IFF_NOARP; |
392 | dev->addr_len = 4; | 391 | dev->addr_len = 4; |
393 | dev->features |= NETIF_F_LLTX; | 392 | dev->features |= NETIF_F_LLTX; |