summaryrefslogtreecommitdiff
path: root/include/net/netdev_queues.h
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2025-05-08 11:56:13 +0200
committerPaolo Abeni <pabeni@redhat.com>2025-05-08 11:56:14 +0200
commit3c44b2d615e6ee08d650c2864fdc4e68493eac0c (patch)
treeb055b0ad73c621714ec6fabfdf53edb5436a4534 /include/net/netdev_queues.h
parent95d2f25871cc78e31f816ad90f0a6f1f11ec9cb6 (diff)
parent001160ec8c59115efc39e197d40829bdafd4d7f5 (diff)
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/net/netdev_queues.h')
-rw-r--r--include/net/netdev_queues.h6
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
*