[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.03.1501202055210.31736@ws.cisco>
Date: Tue, 20 Jan 2015 20:56:49 +0530 (IST)
From: Govindarajulu Varadarajan <_govind@....com>
To: Eric Dumazet <eric.dumazet@...il.com>
cc: Govindarajulu Varadarajan <_govind@....com>,
Willem de Bruijn <willemb@...gle.com>, davem@...emloft.net,
netdev@...r.kernel.org, ariel.elior@...gic.com, ssujith@...co.com,
benve@...co.com
Subject: Re: [PATCH net 2/2] bnx2x: fix napi poll return value for repoll
On Tue, 20 Jan 2015, Eric Dumazet wrote:
> On Tue, 2015-01-20 at 06:51 -0800, Eric Dumazet wrote:
>
>>>
>>> for_each_cos_in_tx_queue(fp, cos)
>>> if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos]))
>>> @@ -3187,7 +3187,7 @@ static int bnx2x_poll(struct napi_struct *napi, int budget)
>>> /* must not complete if we consumed full budget */
>>> if (work_done >= budget) {
>>> bnx2x_fp_unlock_napi(fp);
>>> - break;
>>> + return budget;
>>
>> This one looks fine.
>
> But its not necessary, as here budget == work_done.
>
> (work_done > budget) would be a bug from bnx2x_rx_int()
>
Yes, I missed that one. This change here is not needed.
Thanks
--
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