]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 23:03:09 +0000 (16:03 -0700)
commit28e0703304ea18c542c74358f8053e40e5a57072
tree69460a93f9a0a24e3392f8bf444aec7c16e34a8f
parent631e43dd42e6c301613317a4f0e393b07abf619e
ip_tunnel: fix ipv4 pmtu check to honor inner ip header df

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 a3fe0f108e053514 broke it, and this commit fixes
the ipv4 df check back to the way it was.

Fixes: a3fe0f108e053514 ("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>
net/ipv4/ip_tunnel.c