]> git.baikalelectronics.ru Git - kernel.git/commit
vti4: Don't count header length twice.
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 16 Apr 2014 07:01:03 +0000 (09:01 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 16 Apr 2014 07:01:03 +0000 (09:01 +0200)
commit98de6dcb3f3adf23517f0715b6f345ed0deab77f
tree99f02a096e25534e967b3b0f8239422b098322db
parent9cd3e57353aafda7e39498a07c9dd2d31fb904c6
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: 28c8eb42 ("vti: switch to new ip tunnel code")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/ip_vti.c