Re: [PATCH net-next] net: properly flush delay-freed skbs

2016-11-25 Thread David Miller
From: Eric Dumazet Date: Wed, 23 Nov 2016 08:44:56 -0800 > From: Eric Dumazet > > Typical NAPI drivers use napi_consume_skb(skb) at TX completion time. > This put skb in a percpu special queue, napi_alloc_cache, to get bulk > frees. > > It turns out the queue is not flushed and hits the NAPI_S

Re: [PATCH net-next] net: properly flush delay-freed skbs

2016-11-23 Thread Jesper Dangaard Brouer
On Wed, 23 Nov 2016 09:12:50 -0800 Alexander Duyck wrote: > On Wed, Nov 23, 2016 at 8:44 AM, Eric Dumazet wrote: > > From: Eric Dumazet > > > > Typical NAPI drivers use napi_consume_skb(skb) at TX completion time. > > This put skb in a percpu special queue, napi_alloc_cache, to get bulk > > fre

Re: [PATCH net-next] net: properly flush delay-freed skbs

2016-11-23 Thread Alexander Duyck
On Wed, Nov 23, 2016 at 8:44 AM, Eric Dumazet wrote: > From: Eric Dumazet > > Typical NAPI drivers use napi_consume_skb(skb) at TX completion time. > This put skb in a percpu special queue, napi_alloc_cache, to get bulk > frees. > > It turns out the queue is not flushed and hits the NAPI_SKB_CACH