Re: __dev_kfree_skb_any() and use of dev_kfree_skb()

2018-10-03 Thread Neil Horman
On Tue, Oct 02, 2018 at 03:20:48PM -0700, Florian Fainelli wrote: > On 10/02/2018 03:05 PM, Eric Dumazet wrote: > > On Tue, Oct 2, 2018 at 2:54 PM Florian Fainelli > > wrote: > >> > >> On 10/02/2018 02:17 PM, Eric Dumazet wrote: > >>> On Tue, Oct 2, 2018 at 1:07 PM Florian Fainelli > >>>

Re: __dev_kfree_skb_any() and use of dev_kfree_skb()

2018-10-02 Thread Florian Fainelli
On 10/02/2018 03:05 PM, Eric Dumazet wrote: > On Tue, Oct 2, 2018 at 2:54 PM Florian Fainelli wrote: >> >> On 10/02/2018 02:17 PM, Eric Dumazet wrote: >>> On Tue, Oct 2, 2018 at 1:07 PM Florian Fainelli >>> wrote: Hi Eric, Neil, Should not __dev_kfree_skb_any() call

Re: __dev_kfree_skb_any() and use of dev_kfree_skb()

2018-10-02 Thread Eric Dumazet
On Tue, Oct 2, 2018 at 2:54 PM Florian Fainelli wrote: > > On 10/02/2018 02:17 PM, Eric Dumazet wrote: > > On Tue, Oct 2, 2018 at 1:07 PM Florian Fainelli > > wrote: > >> > >> Hi Eric, Neil, > >> > >> Should not __dev_kfree_skb_any() call kfree_skb() instead of > >> dev_kfree_skb() which is

Re: __dev_kfree_skb_any() and use of dev_kfree_skb()

2018-10-02 Thread Florian Fainelli
On 10/02/2018 02:17 PM, Eric Dumazet wrote: > On Tue, Oct 2, 2018 at 1:07 PM Florian Fainelli wrote: >> >> Hi Eric, Neil, >> >> Should not __dev_kfree_skb_any() call kfree_skb() instead of >> dev_kfree_skb() which is aliased to consumes_skb() and therefore does >> not flag the skb with

Re: __dev_kfree_skb_any() and use of dev_kfree_skb()

2018-10-02 Thread Eric Dumazet
On Tue, Oct 2, 2018 at 1:07 PM Florian Fainelli wrote: > > Hi Eric, Neil, > > Should not __dev_kfree_skb_any() call kfree_skb() instead of > dev_kfree_skb() which is aliased to consumes_skb() and therefore does > not flag the skb with SKB_REASON_DROPPED? > > If we take the in_irq() ||

__dev_kfree_skb_any() and use of dev_kfree_skb()

2018-10-02 Thread Florian Fainelli
Hi Eric, Neil, Should not __dev_kfree_skb_any() call kfree_skb() instead of dev_kfree_skb() which is aliased to consumes_skb() and therefore does not flag the skb with SKB_REASON_DROPPED? If we take the in_irq() || irqs_disabled() branch, we will be calling __dev_kfree_skb_irq() which takes care