aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2014-04-16 03:01:03 -0400
committerSteffen Klassert <steffen.klassert@secunet.com>2014-04-16 03:01:03 -0400
commita32452366b7250c42e96a18ffc3ad8db9e0ca3c2 (patch)
tree99f02a096e25534e967b3b0f8239422b098322db /net
parent5596732fa8c14139018ecda8356eabbfb599d830 (diff)
vti4: Don't count header length twice.
We currently count the size of LL_MAX_HEADER and struct iphdr twice for vti4 devices, this leads to a wrong device mtu. The size of LL_MAX_HEADER and struct iphdr is already counted in ip_tunnel_bind_dev(), so don't do it again in vti_tunnel_init(). Fixes: b9959fd3 ("vti: switch to new ip tunnel code") Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/ip_vti.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/ip_vti.c b/net/ipv4/ip_vti.c
index 687ddef4e574..cd62596e9a87 100644
--- a/net/ipv4/ip_vti.c
+++ b/net/ipv4/ip_vti.c
@@ -349,7 +349,6 @@ static int vti_tunnel_init(struct net_device *dev)
349 memcpy(dev->broadcast, &iph->daddr, 4); 349 memcpy(dev->broadcast, &iph->daddr, 4);
350 350
351 dev->type = ARPHRD_TUNNEL; 351 dev->type = ARPHRD_TUNNEL;
352 dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr);
353 dev->mtu = ETH_DATA_LEN; 352 dev->mtu = ETH_DATA_LEN;
354 dev->flags = IFF_NOARP; 353 dev->flags = IFF_NOARP;
355 dev->iflink = 0; 354 dev->iflink = 0;