xfrm: revert ipv4 mtu determination to dst_mtu
authorHannes Frederic Sowa <[email protected]>
Mon, 26 Aug 2013 10:31:19 +0000 (12:31 +0200)
committerSteffen Klassert <[email protected]>
Mon, 26 Aug 2013 10:40:53 +0000 (12:40 +0200)
commit5a25cf1e310888eb333f9e034be84a8117111d30
tree0560fa869eb034e063854e42490c6556f69aa12d
parent844d48746e4b281a933aedc0428048a1219b42f4
xfrm: revert ipv4 mtu determination to dst_mtu

In commit 0ea9d5e3e0e03a63b11392f5613378977dae7eca ("xfrm: introduce
helper for safe determination of mtu") I switched the determination of
ipv4 mtus from dst_mtu to ip_skb_dst_mtu. This was an error because in
case of IP_PMTUDISC_PROBE we fall back to the interface mtu, which is
never correct for ipv4 ipsec.

This patch partly reverts 0ea9d5e3e0e03a63b11392f5613378977dae7eca
("xfrm: introduce helper for safe determination of mtu").

Cc: Steffen Klassert <[email protected]>
Signed-off-by: Hannes Frederic Sowa <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
include/net/xfrm.h
net/ipv4/xfrm4_output.c
net/ipv6/xfrm6_output.c