From: Florian Fainelli <f.fainelli@gmail.com>
To: Govindarajulu Varadarajan <_govind@gmx.com>,
davem@davemloft.net, netdev@vger.kernel.org
Cc: ssujith@cisco.com,
"edumazet@google.com >> Eric Dumazet" <edumazet@google.com>
Subject: Re: [PATCH net-next] enic: fix work done in tx napi_poll
Date: Wed, 12 Nov 2014 15:44:06 -0800 [thread overview]
Message-ID: <5463F0C6.80501@gmail.com> (raw)
In-Reply-To: <1415832126-31901-1-git-send-email-_govind@gmx.com>
On 11/12/2014 02:42 PM, Govindarajulu Varadarajan wrote:
> With the commit d75b1ade567 ("net: less interrupt masking in NAPI") napi repoll
> is done only when work_done == budget. In tx napi poll we always return 0.
> So tx napi is not called again and we do not clean up the tx ring.
Good catch, I had exactly the same bug in bcmsysport.c, sounds like
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c could also need a fix.
Thanks!
>
> Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
> ---
> drivers/net/ethernet/cisco/enic/enic_main.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c
> index 73cf165..5afe360 100644
> --- a/drivers/net/ethernet/cisco/enic/enic_main.c
> +++ b/drivers/net/ethernet/cisco/enic/enic_main.c
> @@ -1312,9 +1312,10 @@ static int enic_poll_msix_wq(struct napi_struct *napi, int budget)
> if (!wq_work_done) {
> napi_complete(napi);
> vnic_intr_unmask(&enic->intr[intr]);
> + return 0;
> }
>
> - return 0;
> + return budget;
> }
>
> static int enic_poll_msix_rq(struct napi_struct *napi, int budget)
>
next prev parent reply other threads:[~2014-11-12 23:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 22:42 [PATCH net-next] enic: fix work done in tx napi_poll Govindarajulu Varadarajan
2014-11-12 23:44 ` Florian Fainelli [this message]
2014-11-13 3:18 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5463F0C6.80501@gmail.com \
--to=f.fainelli@gmail.com \
--cc=_govind@gmx.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=netdev@vger.kernel.org \
--cc=ssujith@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).