ip6_output: fragment outgoing reassembled skb properly
authorJiri Pirko <jiri@resnulli.us>
Wed, 6 Nov 2013 16:52:19 +0000 (17:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Dec 2013 15:29:13 +0000 (07:29 -0800)
commit88a6ec987d157ade1ba8b4e0d105a06a4c6fd27c
treee1db72470f75cfa5bdd2a47fc421289622e1ceb5
parent72b89baeaa1f76c517ae8cfe3dc9e4c59b8d0c0f
ip6_output: fragment outgoing reassembled skb properly

[ Upstream commit 9037c3579a277f3a23ba476664629fda8c35f7c4 ]

If reassembled packet would fit into outdev MTU, it is not fragmented
according the original frag size and it is send as single big packet.

The second case is if skb is gso. In that case fragmentation does not happen
according to the original frag size.

This patch fixes these.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_output.c