Netdev List
 help / color / mirror / Atom feed
From: Antonio Quartulli <antonio@mandelbit.com>
To: netdev-bot+sashiko@kernel.org
Cc: willemdebruijn.kernel@gmail.com, jasowangio@gmail.com,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
	mst@redhat.com, eperezma@redhat.com, ast@kernel.org,
	daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com,
	sdf@fomichev.me, maheshb@google.com, peterpenkov96@gmail.com,
	netdev@vger.kernel.org, virtualization@lists.linux.dev,
	bpf@vger.kernel.org
Subject: Re: [PATCH net v7] tun: bound the NAPI receive queue
Date: Mon, 23 Nov 2026 21:50:11 +0100	[thread overview]
Message-ID: <c663141e-78bf-41cf-81d0-fdda6fcbca74@mandelbit.com> (raw)
In-Reply-To: <179530424233.3135.6226986969775563090@kernel.org>



On 22/11/2026 00:37, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issue(s) to consider.
> 
> Critical: 0 · High: 1 · Medium: 1 · Low: 0
> 
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
> 
> - [High] Bounding the IFF_NAPI queue by packet count only
>    (net_hotdata.max_backlog skbs per tun_file, ignoring size) does not…


Right, and the commit message says so under "Still open": this bounds
each queue the way enqueue_to_backlog() bounds the per-CPU backlog, but
not the memory a user can queue. Closing that needs the queued skbs
charged to the writer's memcg, which touches more allocation sites (one
in vhost-net) and every tun user, so it will be a separate change.


> - [Medium] The patch silently changes behaviour for IFF_NAPI users who
>    set a finite send buffer with TUNSETSNDBUF, and the commit message…
> 

True for a send buffer larger than about netdev_max_backlog packets:
there the queue limit now drops before the writer would block on socket
memory. With a smaller send buffer the writer still blocks first. A full
queue dropping instead of pushing back is also what netif_rx() does for
a full backlog, regardless of the send buffer, and blocking on the NAPI
queue would need a wait/wake mechanism tun does not have.
I'd rather
keep the fix minimal; netdev_max_backlog tunes the limit and be done 
with it.


Given the above, I am not going to respin.


Regards,


-- 
Antonio Quartulli

CEO and Co-Founder
Mandelbit Srl
https://www.mandelbit.com


      reply	other threads:[~2026-11-23 20:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 15:30 [PATCH net v7] tun: bound the NAPI receive queue Antonio Quartulli
2026-11-19 19:36 ` Willem de Bruijn
2026-11-21 23:37 ` netdev-bot+sashiko
2026-11-23 20:50   ` Antonio Quartulli [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=c663141e-78bf-41cf-81d0-fdda6fcbca74@mandelbit.com \
    --to=antonio@mandelbit.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=eperezma@redhat.com \
    --cc=hawk@kernel.org \
    --cc=horms@kernel.org \
    --cc=jasowangio@gmail.com \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=maheshb@google.com \
    --cc=mst@redhat.com \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=peterpenkov96@gmail.com \
    --cc=sdf@fomichev.me \
    --cc=virtualization@lists.linux.dev \
    --cc=willemdebruijn.kernel@gmail.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