]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Fri, 3 Mar 2017 10:44:49 +0000 (11:44 +0100)
commitca5fbde47e1e6cb4abdd1b5a20385022f8103a56
tree9b54babc3f7bb4dd3e820a121048f9d920e7fe67
parentd2c2bdcdd8c5ce3d2a68aa3353ed1f340c3e500e
vti4: Don't count header length twice.

commit a32452366b7250c42e96a18ffc3ad8db9e0ca3c2 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/ipv4/ip_vti.c