net: xilinx: axienet: Add statistics support
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest2 patches 4 repliesApplied 2/2
- v32 patches 2 repliesSuperseded
- v2 posting 2/22 patches 5 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 1/2 | 1 patch | 2 replies | Applied 1/1 | |
| v1 | 3 patches | 12 replies | Superseded |
Changes in v4 from the cover letter
- Reduce hw_last_counter to u32 to ensure we use (wrapping) 32-bit arithmetic.
- Implement get_ethtool_stats for nonstandard statistics
- Rebase onto net-next/main
Patches in v4 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: xilinx: axienet: Report RxRject as rx_droppeddrivers/ | +1 | 1 reply | Applied |
| 2/2 | net: xilinx: axienet: Add statistics supportdrivers/ drivers/ | +407 | 3 replies | Applied |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Andrew Lunn | Radhey Shyam Pandey |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v4 0/2] net: xilinx: axienet: Add statistics support
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 v4:
- Reduce hw_last_counter to u32 to ensure we use (wrapping) 32-bit arithmetic.
- Implement get_ethtool_stats for nonstandard statistics
- Rebase onto net-next/main
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 | 327 +++++++++++++++++- 2 files changed, 408 insertions(+), 4 deletions(-)
Signature · 1 line
2.35.1.1320.gc452695387.dirty