]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ip_tunnel: fix ipv4 pmtu check to honor inner ip header df
authorTimo Teräs <timo.teras@iki.fi>
Tue, 7 Jul 2015 05:34:13 +0000 (08:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:21 +0000 (19:26 +0200)
commit952f21eb0cd26e07b9a9e0639c0bd9453caee441
tree128a072f3e92134bd3686218230c7d8186636d0f
parent61d0de723e87ffcbe2350a582ecc426dbe78054c
ip_tunnel: fix ipv4 pmtu check to honor inner ip header df

[ Upstream commit fc24f2b2094366da8786f59f2606307e934cea17 ]

Frag needed should be sent only if the inner header asked
to not fragment. Currently fragmentation is broken if the
tunnel has df set, but df was not asked in the original
packet. The tunnel's df needs to be still checked to update
internally the pmtu cache.

Commit 23a3647bc4f93bac broke it, and this commit fixes
the ipv4 df check back to the way it was.

Fixes: 23a3647bc4f93bac ("ip_tunnels: Use skb-len to PMTU check.")
Cc: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ip_tunnel.c