netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] netdev: add per-queue statistics
@ 2024-02-29  1:02 Jakub Kicinski
  2024-02-29  1:02 ` [PATCH net-next v2 1/3] " Jakub Kicinski
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Jakub Kicinski @ 2024-02-29  1:02 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, amritha.nambiar, danielj, mst,
	michael.chan, sdf, vadim.fedorenko, przemyslaw.kitszel,
	Jakub Kicinski

Hi!

Per queue stats keep coming up, so it's about time someone laid
the foundation. This series adds the uAPI, a handful of stats
and a sample support for bnxt. It's not very comprehensive in
terms of stat types or driver support. The expectation is that
the support will grow organically. If we have the basic pieces
in place it will be easy for reviewers to request new stats,
or use of the API in place of ethtool -S.

See patch 3 for sample output.

v2:
 - un-wrap short lines
 - s/stats/qstats/
v1: https://lore.kernel.org/all/20240226211015.1244807-1-kuba@kernel.org/
 - rename projection -> scope
 - turn projection/scope into flags
 - remove the "netdev" scope since it's always implied
rfc: https://lore.kernel.org/all/20240222223629.158254-1-kuba@kernel.org/

Jakub Kicinski (3):
  netdev: add per-queue statistics
  netdev: add queue stat for alloc failures
  eth: bnxt: support per-queue statistics

 Documentation/netlink/specs/netdev.yaml   |  91 +++++++++
 Documentation/networking/statistics.rst   |  15 ++
 drivers/net/ethernet/broadcom/bnxt/bnxt.c |  63 +++++++
 include/linux/netdevice.h                 |   3 +
 include/net/netdev_queues.h               |  56 ++++++
 include/uapi/linux/netdev.h               |  20 ++
 net/core/netdev-genl-gen.c                |  12 ++
 net/core/netdev-genl-gen.h                |   2 +
 net/core/netdev-genl.c                    | 217 ++++++++++++++++++++++
 tools/include/uapi/linux/netdev.h         |  20 ++
 10 files changed, 499 insertions(+)

-- 
2.43.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-03-06 18:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-29  1:02 [PATCH net-next v2 0/3] netdev: add per-queue statistics Jakub Kicinski
2024-02-29  1:02 ` [PATCH net-next v2 1/3] " Jakub Kicinski
2024-02-29  1:02 ` [PATCH net-next v2 2/3] netdev: add queue stat for alloc failures Jakub Kicinski
2024-02-29  1:02 ` [PATCH net-next v2 3/3] eth: bnxt: support per-queue statistics Jakub Kicinski
2024-02-29  3:40   ` Michael Chan
2024-02-29  3:52     ` Jakub Kicinski
2024-03-06 14:56     ` Jakub Kicinski
2024-03-06 18:10       ` Michael Chan
2024-02-29 17:26 ` [PATCH net-next v2 0/3] netdev: add " Stanislav Fomichev
2024-02-29 18:53 ` Nambiar, Amritha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).