ip_output: do skb ufo init for peeked non ufo skb as well
authorJiri Pirko <jiri@resnulli.us>
Sat, 19 Oct 2013 10:29:17 +0000 (12:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Oct 2013 23:20:52 +0000 (19:20 -0400)
commite93b7d748be887cd7639b113ba7d7ef792a7efb9
tree982957514f2e4966c2a817c7615178c459e1fd3a
parentc547dbf55d5f8cf615ccc0e7265e98db27d3fb8b
ip_output: do skb ufo init for peeked non ufo skb as well

Now, if user application does:
sendto len<mtu flag MSG_MORE
sendto len>mtu flag 0
The skb is not treated as fragmented one because it is not initialized
that way. So move the initialization to fix this.

introduced by:
commit e89e9cf539a28df7d0eb1d0a545368e9920b34ac "[IPv4/IPv6]: UFO Scatter-gather approach"

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c