Antonio Quartulli wrote:
> 
> 
> On 22/11/2026 00:37, [email protected] 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.

Agreed.

Reply via email to