net: refactor sk_page_frag_refill()
authorEric Dumazet <edumazet@google.com>
Thu, 17 Oct 2013 23:27:07 +0000 (16:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Oct 2013 04:08:51 +0000 (00:08 -0400)
While working on virtio_net new allocation strategy to increase
payload/truesize ratio, we found that refactoring sk_page_frag_refill()
was needed.

This patch splits sk_page_frag_refill() into two parts, adding
skb_page_frag_refill() which can be used without a socket.

While we are at it, add a minimum frag size of 32 for
sk_page_frag_refill()

Michael will either use netdev_alloc_frag() from softirq context,
or skb_page_frag_refill() from process context in refill_work()
 (GFP_KERNEL allocations)

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

No differences found