]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnels: Use skb-len to PMTU check.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 2 Jul 2013 17:57:33 +0000 (10:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2013 23:43:35 +0000 (16:43 -0700)
commit52a9e1ed3862b15956b0cdf9dbd985fb6465804c
tree40dba500db5b02a9e04c6d7bb64a69c60c7f7e88
parent4d5c6e7722ece01489077a88093783eed9b0a572
ip_tunnels: Use skb-len to PMTU check.

In path mtu check, ip header total length works for gre device
but not for gre-tap device.  Use skb len which is consistent
for all tunneling types.  This is old bug in gre.
This also fixes mtu calculation bug introduced by
commit e7ccb3806ba4bf49634a4 (GRE: Refactor GRE tunneling code).

Reported-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c