]> www.infradead.org Git - users/dwmw2/linux.git/commit
virtio-net: fix total qstat values
authorJakub Kicinski <kuba@kernel.org>
Wed, 7 May 2025 00:32:21 +0000 (17:32 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 8 May 2025 09:56:12 +0000 (11:56 +0200)
commit001160ec8c59115efc39e197d40829bdafd4d7f5
treeb055b0ad73c621714ec6fabfdf53edb5436a4534
parent23fa6a23d97182d36ca3c71e43c804fa91e46a03
virtio-net: fix total qstat values

NIPA tests report that the interface statistics reported
via qstat are lower than those reported via ip link.
Looks like this is because some tests flip the queue
count up and down, and we end up with some of the traffic
accounted on disabled queues.

Add up counters from disabled queues.

Fixes: d888f04c09bb ("virtio-net: support queue stat")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20250507003221.823267-3-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/virtio_net.c