• E
    net: refactor sk_page_frag_refill() · 400dfd3a
    Eric Dumazet 提交于
    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: NEric Dumazet <edumazet@google.com>
    Cc: Michael Dalton <mwdalton@google.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    400dfd3a
sock.c 73.2 KB