net: add alloc_skb_with_frags() helper
authorEric Dumazet <edumazet@google.com>
Wed, 17 Sep 2014 11:49:49 +0000 (04:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Sep 2014 20:25:23 +0000 (16:25 -0400)
Extract from sock_alloc_send_pskb() code building skb with frags,
so that we can reuse this in other contexts.

Intent is to use it from tcp_send_rcvq(), tcp_collapse(), ...

We also want to replace some skb_linearize() calls to a more reliable
strategy in pathological cases where we need to reduce number of frags.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found