RFC ethtool HW timestamping statistics
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest6 patches 22 repliesIn review
- v1 RFC6 patches 21 repliesSuperseded
Changes in v2 from the cover letter
- Dropped the late statistics counter since that was not general enough
- Dropped the layer selection attribute for timestamping statistics
- Take Jakub's suggestion and converted to ETHTOOL_FLAG_STATS
- Provided a working interface to query these new statistics from tools/net/ynl/ethtool.py
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | ethtool: add interface to read Tx hardware timestamping statisticsDocumentation/ include/ include/ +1 more | +107 | 13 replies | |
| 2/6 | net/mlx5e: Introduce lost_cqe statistic counter for PTP Tx port timestamping CQDocumentation/ drivers/ drivers/ +1 more | +9 | 0 replies | |
| 3/6 | net/mlx5e: Introduce timestamps statistic counter for Tx DMA layerDocumentation/ drivers/ drivers/ +1 more | +12 | 0 replies | |
| 4/6 | net/mlx5e: Implement ethtool hardware timestamping statisticsdrivers/ drivers/ drivers/ | +56 | 0 replies | |
| 5/6 | tools: ynl: ethtool.py: Make tool invokable from any CWDtools/ | +6 | 1 reply | |
| 6/6 | tools: ynl: ethtool.py: Output timestamping statistics from tsinfo-get operationtools/ | +10 | 8 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Tariq Toukan |
|---|---|
| 1/6 | |
| 2/6 | R-b |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RFC v2 0/6] ethtool HW timestamping statistics
The goal of this patch series is to introduce a common set of ethtool statistics for hardware timestamping that a driver implementer can hook into. The statistics counters added are based on what I believe are common patterns/behaviors found across various hardware timestamping implementations seen in the kernel tree today. The mlx5 family of devices is used as the PoC for this patch series. Other vendors are more than welcome to chim in on this series.
Changes since v1:
- Dropped the late statistics counter since that was not general enough
- Dropped the layer selection attribute for timestamping statistics
- Take Jakub's suggestion and converted to ETHTOOL_FLAG_STATS
- Provided a working interface to query these new statistics from tools/net/ynl/ethtool.py
---
Rahul Rameshbabu (6):
ethtool: add interface to read Tx hardware timestamping statistics net/mlx5e: Introduce lost_cqe statistic counter for PTP Tx port
timestamping CQ
net/mlx5e: Introduce timestamps statistic counter for Tx DMA layer net/mlx5e: Implement ethtool hardware timestamping statistics
tools: ynl: ethtool.py: Make tool invokable from any CWD
tools: ynl: ethtool.py: Output timestamping statistics from tsinfo-get
operation
Documentation/netlink/specs/ethtool.yaml | 20 +++++++ .../ethernet/mellanox/mlx5/counters.rst | 11 ++++ .../net/ethernet/mellanox/mlx5/core/en/ptp.c | 1 + .../ethernet/mellanox/mlx5/core/en_ethtool.c | 9 ++++ .../ethernet/mellanox/mlx5/core/en_stats.c | 48 +++++++++++++++++ .../ethernet/mellanox/mlx5/core/en_stats.h | 4 ++ .../net/ethernet/mellanox/mlx5/core/en_tx.c | 6 ++- include/linux/ethtool.h | 21 ++++++++ include/uapi/linux/ethtool_netlink.h | 15 ++++++ net/ethtool/tsinfo.c | 52 ++++++++++++++++++- tools/net/ynl/ethtool.py | 19 +++++-- 11 files changed, 200 insertions(+), 6 deletions(-)
Signature · 1 line
2.42.0