]> git.ipfire.org Git - people/ms/linux.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>
Thu, 1 Oct 2015 09:36:19 +0000 (11:36 +0200)
commit5a2c3656bd466dffd0eaef5f8149a668be60a3bd
tree2b40776ce092a3566f15bdd3bd80d14010e74fa3
parentc8fa57bbcfc2cd2ce5e6f4e89d860c58ba401279
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