Netdev List
 help / color / mirror / Atom feed
From: "Lange Tang" <lange_tang@163.com>
To: "Jiaming Fan" <fan.jiaming@hotmail.com>
Cc: "mst@redhat.com" <mst@redhat.com>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Eugenio Perez" <eperezma@redhat.com>,
	"jasowangio@gmail.com" <jasowangio@gmail.com>,
	"xuanzhuo@linux.alibaba.com" <xuanzhuo@linux.alibaba.com>,
	"virtualization@lists.linux.dev" <virtualization@lists.linux.dev>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"Tang Longjun" <tanglongjun@kylinos.cn>
Subject: Re:Re: [PATCH v2 0/3] virtio_net: introduce an RX queue watchdog for stuck detection
Date: Tue, 24 Nov 2026 16:43:59 +0800 (CST)	[thread overview]
Message-ID: <413a69a4.746a.1a20cb9e72c.Coremail.lange_tang@163.com> (raw)
In-Reply-To: <OS3PR01MB10251CFF97E32B1E7B71D497CE7472@OS3PR01MB10251.jpnprd01.prod.outlook.com>

At 2026-11-21 16:27:27, "Jiaming Fan" <fan.jiaming@hotmail.com> wrote:
>Hi Longjun,
>
>I don't think this reasoning holds. You saw an RX stall, but that
>doesn't mean it was caused by a lost interrupt. Masking the interrupt
>injection only creates the same symptom, it doesn't reproduce what
>happened in production.

A lost interrupt is enough to stall the RX queue, and this can be seen 
from the code: the ring is only drained from the notification path,
vring_interrupt() -> skb_recv_done() -> virtqueue_napi_schedule() ->
virtnet_poll(). If that notification is lost, the used ring is not drained,
buffers are never returned, the device runs out of descriptors and stops
publishing, so no further notification comes. The queue stays stuck.

>
>Michael posted a patch for a similar RX stall recently:
>https://lore.kernel.org/netdev/ad74886a8429a862c00d1e42f1dc746f2924b75f.1795108341.git.mst@redhat.com/
>
>So did your guest have IRQ deferral enabled (napi_defer_hard_irqs and
>gro_flush_timeout)? If so, you may have hit the race Michael fixed. It
>stalls the queue the same way without losing any interrupt.

I looked at Michael's patch and my case does not match it: at the time 
of the stall the callbacks were enabled, and IRQ deferral was not enabled
(napi_defer_hard_irqs = 0, gro_flush_timeout = 0).

      reply	other threads:[~2026-11-24  8:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  7:18 [PATCH v2 0/3] virtio_net: introduce an RX queue watchdog for stuck detection Longjun Tang
2026-11-20  7:18 ` [PATCH v2 1/3] virtio: add virtqueue_get_last_used_idx() helper Longjun Tang
2026-11-20 17:43   ` Michael S. Tsirkin
2026-11-20  7:18 ` [PATCH v2 2/3] virtio_net: introduce an RX queue watchdog for stuck detection Longjun Tang
2026-11-20  7:18 ` [PATCH v2 3/3] virtio_net: add stalls per-queue statistic Longjun Tang
2026-11-20 17:45 ` [PATCH v2 0/3] virtio_net: introduce an RX queue watchdog for stuck detection Michael S. Tsirkin
2026-11-24  8:41   ` Lange Tang
2026-11-21  8:27 ` Jiaming Fan
2026-11-24  8:43   ` Lange Tang [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=413a69a4.746a.1a20cb9e72c.Coremail.lange_tang@163.com \
    --to=lange_tang@163.com \
    --cc=eperezma@redhat.com \
    --cc=fan.jiaming@hotmail.com \
    --cc=jasowangio@gmail.com \
    --cc=kuba@kernel.org \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=tanglongjun@kylinos.cn \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.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