Re: [net-next PATCH 3/7] net: bulk alloc and reuse of SKBs in NAPI context

2016-03-13 Thread Jesper Dangaard Brouer
On Sun, 13 Mar 2016 16:06:17 +0200 Rana Shahout wrote: > On Fri, Mar 4, 2016 at 3:01 PM, Jesper Dangaard Brouer > wrote: > > > /* build_skb() is wrapper over __build_skb(), that specifically > > * takes care of skb->head and skb->pfmemalloc > > * This means that if @frag_size is not zero,

Re: [net-next PATCH 3/7] net: bulk alloc and reuse of SKBs in NAPI context

2016-03-13 Thread Rana Shahout
On Fri, Mar 4, 2016 at 3:01 PM, Jesper Dangaard Brouer wrote: > /* build_skb() is wrapper over __build_skb(), that specifically > * takes care of skb->head and skb->pfmemalloc > * This means that if @frag_size is not zero, then @data must be backed > @@ -490,8 +500,8 @@ struct sk_buff *__nap

[net-next PATCH 3/7] net: bulk alloc and reuse of SKBs in NAPI context

2016-03-04 Thread Jesper Dangaard Brouer
This patch introduce bulk alloc of SKBs and allow reuse of SKBs free'ed in same softirq cycle. SKBs are normally free'ed during TX completion, but most high speed drivers also cleanup TX ring during NAPI RX poll cycle. Thus, if using napi_consume_skb/__kfree_skb_defer, SKBs will be avail in the n