[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140311.004217.1616529960369263682.davem@davemloft.net>
Date: Tue, 11 Mar 2014 00:42:17 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: ebiederm@...ssion.com, netdev@...r.kernel.org,
xiyou.wangcong@...il.com, mpm@...enic.com, satyam.sharma@...il.com
Subject: Re: [PATCH 01/11] bonding: Call dev_kfree_skby_any instead of
kfree_skb.
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 10 Mar 2014 20:44:27 -0700
> On Mon, 2014-03-10 at 20:18 -0700, Eric W. Biederman wrote:
>> - consume_skb(skb);
>> + dev_consume_skb_any(skb);
>
> Why is this needed ? AFAIK we run in softirq here.
>
>> return ret;
>> }
>> }
>> @@ -1132,7 +1132,7 @@ static rx_handler_result_t bond_handle_frame(struct sk_buff **pskb)
>>
>> if (unlikely(skb_cow_head(skb,
>> skb->data - skb_mac_header(skb)))) {
>> - kfree_skb(skb);
>> + dev_kfree_skb_any(skb);
>
> same here.
These changes eminate from a recent discussion about netpoll, which can
call into the driver from hardware interrupts, particularly when netconsole
services a printk from hardware interrupt context.
bnx2x already makes similar ammends.
I hope that Eric B. here audited to make sure he's only doing this
transformation in situations that actually need this treatment for
the above mentioned issue.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists