Netdev List
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>
Cc: "Martin Karsten" <mkarsten@uwaterloo.ca>,
	"David S. Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@google.com>,
	"Simon Horman" <horms@kernel.org>, "Joe Damato" <joe@dama.to>,
	"Tariq Toukan" <tariqt@nvidia.com>,
	"Gal Pressman" <gal@nvidia.com>, "Bj�rn T�pel" <bjorn@kernel.org>,
	"Frederik Deweerdt" <fdeweerdt@fastly.com>,
	"Dragos Tatulea" <dtatulea@nvidia.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v3] net: napi: Skip last poll when arming gro timer in busy poll
Date: Fri, 22 May 2026 16:50:37 -0700	[thread overview]
Message-ID: <20260522165037.4327dd4f@kernel.org> (raw)
In-Reply-To: <c75646e0-8a1c-4301-b6e8-fa2faf21563f@redhat.com>

On Thu, 21 May 2026 18:19:21 +0200 Paolo Abeni wrote:
> >> Not blocking, but I find the above slightly confusing after this
> >> refactor. Perhaps it should be re-worded?  
> > 
> > I'd be happy to reword, but I am not familiar with the internals of gro 
> > processing, so would appreciate any help I can get?
> > 
> > Should I try-and-error via subsequent patch submission(s) or can you 
> > comment on this version:
> > 
> > 		/* Use the driver poll to re-enable device interrupts. */
> > 		rc = napi->poll(napi, budget);
> > 		trace_napi_poll(napi, rc, budget);
> > 		netpoll_poll_unlock(have_poll_lock);
> > 		if (rc == budget) {
> > 			/* If napi_complete_done has not been called by the
> > 			 * driver poll, the napi needs to be rescheduled.
> > 			 * Use the opportunity to pass up completed gro skbs.  
> 
> Possibly something alike the following:
> 
> 			/* More work to do: no concurrent napi-related 	
> 			 * irq is possible and the current thread can
> 			 * pass up the pending skb batch.
> 			 */

I'd stay focused on the ownership FWIW:

		/* Unless rc == budget we no longer own the NAPI instance,
		 * IRQ may fire on another CPU, poll this NAPI and enter GRO.
		 */

(in the current location of the comment i.e. _before_ the if (rc == budget))

      reply	other threads:[~2026-05-22 23:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-18 18:13 [PATCH net-next v3] net: napi: Skip last poll when arming gro timer in busy poll Martin Karsten
2026-05-18 22:45 ` Joe Damato
2026-05-21 14:13 ` Paolo Abeni
2026-05-21 15:42   ` Martin Karsten
2026-05-21 16:19     ` Paolo Abeni
2026-05-22 23:50       ` Jakub Kicinski [this message]

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=20260522165037.4327dd4f@kernel.org \
    --to=kuba@kernel.org \
    --cc=bjorn@kernel.org \
    --cc=davem@davemloft.net \
    --cc=dtatulea@nvidia.com \
    --cc=edumazet@google.com \
    --cc=fdeweerdt@fastly.com \
    --cc=gal@nvidia.com \
    --cc=horms@kernel.org \
    --cc=joe@dama.to \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkarsten@uwaterloo.ca \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=tariqt@nvidia.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