From: Hannes Frederic Sowa Date: Wed, 26 Feb 2014 00:20:41 +0000 (+0100) Subject: ipv4: use ip_skb_dst_mtu to determine mtu in ip_fragment X-Git-Tag: v3.15-rc1~113^2~258 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69647ce46a236a355a7a3096d793819a9bd7c1d3;p=pandora-kernel.git ipv4: use ip_skb_dst_mtu to determine mtu in ip_fragment ip_skb_dst_mtu mostly falls back to ip_dst_mtu_maybe_forward if no socket is attached to the skb (in case of forwarding) or determines the mtu like we do in ip_finish_output, which actually checks if we should branch to ip_fragment. Thus use the same function to determine the mtu here, too. This is important for the introduction of IP_PMTUDISC_OMIT, where we want the packets getting cut in pieces of the size of the outgoing interface mtu. IPv6 already does this correctly. Signed-off-by: Hannes Frederic Sowa Signed-off-by: David S. Miller --- Reading git-diff-tree failed