diff options
author | Daniel Jurgens <danielj@nvidia.com> | 2024-05-10 23:19:26 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-14 00:58:36 +0300 |
commit | b56035101e1cdd9c4420ea5da17f09f87fb69285 (patch) | |
tree | 0551041830b6b11592a77530e19c2f63ea5df056 /include/net | |
parent | c084ebd77a00b1a16d9daa57b6ecdfdf1f43c78a (diff) | |
download | linux-b56035101e1cdd9c4420ea5da17f09f87fb69285.tar.xz |
netdev: Add queue stats for TX stop and wake
TX queue stop and wake are counted by some drivers.
Support reporting these via netdev-genl queue stats.
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Link: https://lore.kernel.org/r/20240510201927.1821109-2-danielj@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netdev_queues.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/netdev_queues.h b/include/net/netdev_queues.h index e7b84f018cee..a8a7e48dfa6c 100644 --- a/include/net/netdev_queues.h +++ b/include/net/netdev_queues.h @@ -41,6 +41,9 @@ struct netdev_queue_stats_tx { u64 hw_gso_wire_bytes; u64 hw_drop_ratelimits; + + u64 stop; + u64 wake; }; /** |