Skip to content

add ethtool categorized statistics

Rakesh Sankaranarayanan lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 18 repliesIn review
  2. v1 RFC5 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: dsa: microchip: add rmon grouping for ethtool statisticsdrivers/net/dsa/microchip/Makefile drivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h +2 more+217 -05 replies
2/5net: dsa: microchip: add eth ctrl grouping for ethtool statisticsdrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h drivers/net/dsa/microchip/ksz_ethtool.c +1 more+61 -02 replies
3/5net: dsa: microchip: add eth mac grouping for ethtool statisticsdrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h drivers/net/dsa/microchip/ksz_ethtool.c +1 more+109 -07 replies
4/5net: dsa: microchip: add eth phy grouping for ethtool statisticsdrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h drivers/net/dsa/microchip/ksz_ethtool.c +1 more+56 -00 replies
5/5net: dsa: microchip: remove num_alus_variabledrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h+0 -172 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/5] add ethtool categorized statistics

Patch series contain following changes:
- add categorized ethtool statistics for Microchip KSZ series switches, support "eth-mac", "eth-phy", "eth-ctrl", "rmon" parameters with ethtool statistics command. mib parameter index are same for all KSZ family switches except KSZ8830. So, functions can be re-used across all KSZ Families (except KSZ8830) and LAN937x series. Create separate functions for KSZ8830 with their mib parameters.
- Remove num_alus member from ksz_chip_data structure since it is unused

v2
- updated all constants as capital
- removed counters that are not supported in hardware
- updated the FramesTransmittedOK and OctetsTransmittedOK counters as per standards

v1
- Initial submission

Rakesh Sankaranarayanan (5):
net: dsa: microchip: add rmon grouping for ethtool statistics
net: dsa: microchip: add eth ctrl grouping for ethtool statistics
net: dsa: microchip: add eth mac grouping for ethtool statistics
net: dsa: microchip: add eth phy grouping for ethtool statistics
net: dsa: microchip: remove num_alus_variable

 drivers/net/dsa/microchip/Makefile      |   1 +
 drivers/net/dsa/microchip/ksz_common.c  |  70 +++--
 drivers/net/dsa/microchip/ksz_common.h  |  10 +-
 drivers/net/dsa/microchip/ksz_ethtool.c | 348 ++++++++++++++++++++++++
 drivers/net/dsa/microchip/ksz_ethtool.h |  31 +++
 5 files changed, 443 insertions(+), 17 deletions(-)
 create mode 100644 drivers/net/dsa/microchip/ksz_ethtool.c
 create mode 100644 drivers/net/dsa/microchip/ksz_ethtool.h
Signature · 1 line
2.34.1