]> 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)
commit9410dfa4641ef484ef123bc3f1b6b362b6bb6266
tree69460a93f9a0a24e3392f8bf444aec7c16e34a8f
parenta741187e8bf2ca5fdf59769b6f668a0c5ad672b4
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 52a9e1ed3862b159 broke it, and this commit fixes
the ipv4 df check back to the way it was.

Fixes: 52a9e1ed3862b159 ("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