Netdev List
 help / color / mirror / Atom feed
From: "Lange Tang" <lange_tang@163.com>
To: "Jakub Kicinski" <kuba@kernel.org>
Cc: "mst@redhat.com" <mst@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] virtio_net: add rx-alloc-fail counter
Date: Tue, 25 Aug 2026 16:13:44 +0800 (CST)	[thread overview]
Message-ID: <60cd1569.6b2c.1a037fb8129.Coremail.lange_tang@163.com> (raw)
In-Reply-To: <20260824112050.02623327@kernel.org>

At 2026-08-25 02:20:50, "Jakub Kicinski" <kuba@kernel.org> wrote:
>On Thu, 20 Aug 2026 14:09:29 +0800 Longjun Tang wrote:
>> Count the cases where the driver fails to allocate a buffer or an skb,
>> such as when try_fill_recv() fails with ENOMEM, and report them via the
>> rx-alloc-fail qstat.
>> 
>> Plumb alloc-fail into virtnet_get_base_stats() to keep this new stat
>> reported consistently at both queue and device scope, matching how
>> packets, bytes, stop and wake are handled.
>
>The stats handling in virtio_net is super convoluted but AFAICT
>your patch is good. Unfortunately, net-next is closed right now
>(merge window) to you will have to repost next week.
>
>Maybe you can try to cover more allocation failures per:
>https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260820060929.69576-1-lange_tang@163.com
>Or add a sentence or two to the commit message that we do not intend
>to cover 100% of cases where packet is dropped.

Thank you for your review and reply.
I will repost v3 next week and add some description to the commit message:
This counter does not cover every allocation failure in all RX paths.
It is intentionally limited to the common skb and RX buffer allocation
paths to keep its meaning clear.

thanks.
Longjun Tang

      reply	other threads:[~2026-08-25  8:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-20  6:09 [PATCH v2] virtio_net: add rx-alloc-fail counter Longjun Tang
2026-08-24 18:20 ` Jakub Kicinski
2026-08-25  8:13   ` 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=60cd1569.6b2c.1a037fb8129.Coremail.lange_tang@163.com \
    --to=lange_tang@163.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