diff options
| author | Paolo Abeni <pabeni@redhat.com> | 2025-05-08 11:56:13 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2025-05-08 11:56:14 +0200 |
| commit | 3c44b2d615e6ee08d650c2864fdc4e68493eac0c (patch) | |
| tree | b055b0ad73c621714ec6fabfdf53edb5436a4534 /include | |
| parent | Merge branch 'fbnic-fw-ipc-mailbox-fixes' (diff) | |
| parent | virtio-net: fix total qstat values (diff) | |
| download | linux-3c44b2d615e6ee08d650c2864fdc4e68493eac0c.tar.gz linux-3c44b2d615e6ee08d650c2864fdc4e68493eac0c.zip | |
Merge branch 'virtio-net-fix-total-qstat-values'
Jakub Kicinski says:
====================
virtio-net: fix total qstat values
Another small fix discovered after we enabled virtio multi-queue
in netdev CI. The queue stat test fails:
# Exception| Exception: Qstats are lower, fetched later
not ok 3 stats.pkt_byte_sum
The queue stats from disabled queues are supposed to be reported
in the "base" stats.
====================
Link: https://patch.msgid.link/20250507003221.823267-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/netdev_queues.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/netdev_queues.h b/include/net/netdev_queues.h index 825141d675e5..d01c82983b4d 100644 --- a/include/net/netdev_queues.h +++ b/include/net/netdev_queues.h @@ -103,6 +103,12 @@ struct netdev_stat_ops { struct netdev_queue_stats_tx *tx); }; +void netdev_stat_queue_sum(struct net_device *netdev, + int rx_start, int rx_end, + struct netdev_queue_stats_rx *rx_sum, + int tx_start, int tx_end, + struct netdev_queue_stats_tx *tx_sum); + /** * struct netdev_queue_mgmt_ops - netdev ops for queue management * |
