mbox series

[net-next,0/3] net: xilinx: axienet: Add statistics support

Message ID 20240610231022.2460953-1-sean.anderson@linux.dev (mailing list archive)
Headers show
Series net: xilinx: axienet: Add statistics support | expand

Message

Sean Anderson June 10, 2024, 11:10 p.m. UTC
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.
In the future, we could add a simpler alternate implementation for
64-bit counters enabled with a device-tree property, but for now I've
gone with a unified implementation.


Sean Anderson (3):
  net: xilinx: axienet: Use NL_SET_ERR_MSG instead of netdev_err
  net: xilinx: axienet: Report RxRject as rx_dropped
  net: xilinx: axienet: Add statistics support

 drivers/net/ethernet/xilinx/xilinx_axienet.h  |  81 ++++++
 .../net/ethernet/xilinx/xilinx_axienet_main.c | 275 +++++++++++++++++-
 2 files changed, 349 insertions(+), 7 deletions(-)