vti4: Don't count header length twice.
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 16 Apr 2014 07:01:03 +0000 (09:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2017 22:47:00 +0000 (00:47 +0200)
commit37fdac589c27ee92e3634b2269e810b39d1ebd58
tree82639d7d073e8e5c873d556e311d8bfedb0a2360
parent3ac993d473612d4830646fc5dfa25fb542aa40f1
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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/ipv4/ip_vti.c