netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: "<netdev@vger.kernel.org>" <netdev@vger.kernel.org>,
	Jaswinder Singh <jaswinder.singh@linaro.org>,
	Masami Hiramatsu <masami.hiramatsu@linaro.org>,
	Masahisa Kojima <masahisa.kojima@linaro.org>
Subject: Re: [net-next, PATCH 2/2] net: socionext: remove mmio reads on Tx
Date: Fri, 14 Dec 2018 16:32:59 +0200	[thread overview]
Message-ID: <20181214143259.GA12115@apalos> (raw)
In-Reply-To: <CAKv+Gu-bOESCGxS6EdOGArzA8VueA+WCruDugMrc6Fj_ve7hCg@mail.gmail.com>

Hi Ard,
> > >
> > > So shouldn't we do this *after* processing Rx, and only if there is budget left?
> >
> > I am not really sure, this would drown Tx processing if you had a bunch of
> > received packets that exhausted the budget.
> > Intel 1gbit drivers are doing something similar. They reclaim Tx prior to
> > processing Rx. The only thing that could be checked here i guess is keep the
> > napi poll running if *all* Tx descriptors were processed at some point instead
> > of re-enabling irqs.
> >
> 
> The reason I suggest it is because you quoted it from the documentation :-)

Yes i understand. I had my doubts as well.
That's hy i tried following the example of another driver.

> 
> But if reality deviates from that, then sure, let's follow the
> examples of others.

Agree. Unless someone has any objections i am fine with the current patches.


Thanks!
/Ilias

  reply	other threads:[~2018-12-14 14:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-14  8:59 [net-next, PATCH 1/2] net: socionext: correctly recover txq after being full Ilias Apalodimas
2018-12-14  8:59 ` [net-next, PATCH 2/2] net: socionext: remove mmio reads on Tx Ilias Apalodimas
2018-12-14 10:59   ` Ard Biesheuvel
2018-12-14 11:18     ` Ilias Apalodimas
2018-12-14 14:16       ` Ard Biesheuvel
2018-12-14 14:32         ` Ilias Apalodimas [this message]
2018-12-14 20:05           ` Jassi Brar
2018-12-15 21:15   ` David Miller
2018-12-15 21:15 ` [net-next, PATCH 1/2] net: socionext: correctly recover txq after being full 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=20181214143259.GA12115@apalos \
    --to=ilias.apalodimas@linaro.org \
    --cc=ard.biesheuvel@linaro.org \
    --cc=jaswinder.singh@linaro.org \
    --cc=masahisa.kojima@linaro.org \
    --cc=masami.hiramatsu@linaro.org \
    --cc=netdev@vger.kernel.org \
    /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).