On Thu, 19 Nov 2026 12:13:44 -0500 Michael S. Tsirkin wrote:
> Virtio is special in that enabling or disabling callbacks (interrupts)
> accesses shared virtqueue state and must be serialized with polling.
> It therefore enables callbacks before completing NAPI, and disables them
> again if completion returns false.
> 
> With napi_complete_done(), that false return can come after ownership has
> passed to another poll. The first poll can then disable callbacks after
> its successor has enabled them, leaving RX stalled. Virtio therefore
> needs to disable callbacks before handing off NAPI ownership.
> 
> Add a prepare/finish NAPI completion API so virtio-net can mask interrupts
> before handing ownership off.
> 
> Reported-by: Congjie Zhou <[email protected]>
> Closes: 
> https://lore.kernel.org/netdev/[email protected]/
> Fixes: 6f8b12d661d0 ("net: napi: add hard irqs deferral feature")
> Message-ID: <[email protected]>
> Assisted-by: LLM
> Tested-by: Congjie Zhou <[email protected]>

Not sure what model you used for this but it looks like shameful
slop. It'd be highly preferable to fix the driver. Highly preferable.
If messing with the core is unavoidable and doesn't cost any perf -
please look at the output of your LLM before you submit a patch :/
-- 
pw-bot: cr

Reply via email to