ipv6: reuse ip6_frag_id from ip6_ufo_append_data
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Fri, 21 Feb 2014 01:55:35 +0000 (02:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Mar 2014 04:38:10 +0000 (21:38 -0700)
commit150d6bdb9d2c1bbdf95ba9502c35b5f4ddc4bd7e
treee6c89acffedba44a6107183ef87f6ab6fefc3389
parent73c992581e00ea2177e8b885ed0ed314daac64d9
ipv6: reuse ip6_frag_id from ip6_ufo_append_data

[ Upstream commit 916e4cf46d0204806c062c8c6c4d1f633852c5b6 ]

Currently we generate a new fragmentation id on UFO segmentation. It
is pretty hairy to identify the correct net namespace and dst there.
Especially tunnels use IFF_XMIT_DST_RELEASE and thus have no skb_dst
available at all.

This causes unreliable or very predictable ipv6 fragmentation id
generation while segmentation.

Luckily we already have pregenerated the ip6_frag_id in
ip6_ufo_append_data and can use it here.

Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/udp_offload.c