[PATCH net-next v2 0/2] net: xilinx: axienet: Add statistics support

Sean Anderson posted 2 patches 1 year, 5 months ago
There is a newer version of this series
drivers/net/ethernet/xilinx/xilinx_axienet.h  |  85 ++++++
.../net/ethernet/xilinx/xilinx_axienet_main.c | 259 +++++++++++++++++-
2 files changed, 343 insertions(+), 1 deletion(-)
[PATCH net-next v2 0/2] net: xilinx: axienet: Add statistics support
Posted by Sean Anderson 1 year, 5 months ago
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 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 | 259 +++++++++++++++++-
 2 files changed, 343 insertions(+), 1 deletion(-)

-- 
2.35.1.1320.gc452695387.dirty