netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] net: xilinx: axienet: Add statistics support
@ 2024-08-15 14:40 Sean Anderson
  2024-08-15 14:40 ` [PATCH net-next v3 1/2] net: xilinx: axienet: Report RxRject as rx_dropped Sean Anderson
  2024-08-15 14:40 ` [PATCH net-next v3 2/2] net: xilinx: axienet: Add statistics support Sean Anderson
  0 siblings, 2 replies; 5+ messages in thread
From: Sean Anderson @ 2024-08-15 14:40 UTC (permalink / raw)
  To: Andrew Lunn, Radhey Shyam Pandey, netdev
  Cc: Simon Horman, Jakub Kicinski, Michal Simek, linux-kernel,
	David S . Miller, Russell King, linux-arm-kernel, Eric Dumazet,
	Paolo Abeni, Sean Anderson

Add support for hardware statistics counters (if they are enabled) in
the AXI Ethernet driver. Unfortunately, the implementation is
complicated a bit since the hardware might only support 32-bit counters.

Changes in v3:
- Use explicit mutex_lock/unlock instead of guard() in
  __axienet_device_reset to make it clear that we need to hold
  lp->stats_lock for the whole function.

Changes in v2:
- Switch to a seqlock-based implementation to allow fresher updates
  (rather than always using stale counter values from the previous
  refresh).
- Take stats_lock unconditionally in __axienet_device_reset
- Fix documentation mismatch

Sean Anderson (2):
  net: xilinx: axienet: Report RxRject as rx_dropped
  net: xilinx: axienet: Add statistics support

 drivers/net/ethernet/xilinx/xilinx_axienet.h  |  85 ++++++
 .../net/ethernet/xilinx/xilinx_axienet_main.c | 267 +++++++++++++++++-
 2 files changed, 348 insertions(+), 4 deletions(-)

-- 
2.35.1.1320.gc452695387.dirty


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

end of thread, other threads:[~2024-08-20 14:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15 14:40 [PATCH net-next v3 0/2] net: xilinx: axienet: Add statistics support Sean Anderson
2024-08-15 14:40 ` [PATCH net-next v3 1/2] net: xilinx: axienet: Report RxRject as rx_dropped Sean Anderson
2024-08-15 14:40 ` [PATCH net-next v3 2/2] net: xilinx: axienet: Add statistics support Sean Anderson
2024-08-17  2:42   ` Jakub Kicinski
2024-08-20 14:23     ` Sean Anderson

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).