Skip to content

ethtool(1) cable test support

Andrew Lunn netdev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 3 repliesIn review
  2. v46 patches 7 repliesSuperseded
  3. v36 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches4 repliesSuperseded
v16 patches0 repliesSuperseded

Changes in v5 from the cover letter

Add missing pair in help text
Allow --cable-test|--cable-test-tdr with --monitor
Fix rounding when converting from floating point meters to centimeters

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Add cable test supportMakefile.am ethtool.c netlink/cable_test.c +3 more+284 -10 replies
2/6Add cable test TDR supportethtool.c netlink/cable_test.c netlink/extapi.h +4 more+363 -02 replies
3/6json_writer/json_print: Import the iproute2 helper code for JSON outputMakefile.am json_print.c json_print.h +2 more+764 -10 replies
4/6Add --json command line argument parsingethtool.c internal.h netlink/cable_test.c+90 -390 replies
5/6ethtool.8.in: Document the cable test commandsethtool.8.in+45 -00 replies
6/6ethtool.8.in: Add --json optionethtool.8.in+8 -00 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchChris HealyStephen HemmingerAndrew Lunn
1/6
2/6R-b
3/6A-b
4/6
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH ethtool v5 0/6] ethtool(1) cable test support

Add the user space side of the ethtool cable test.

The TDR output is most useful when fed to some other tool which can visualize the data. So add JSON support, by borrowing code from iproute2.

v2:
man page fixes.

v3:
More man page fixes.
Use json_print from iproute2.

v4:
checkpatch cleanup
ethtool --cable-test dev
Place breakout into cable_test_context
Remove Pair: Pair output

v5:
Add missing pair in help text
Allow --cable-test|--cable-test-tdr with --monitor
Fix rounding when converting from floating point meters to centimeters

Andrew Lunn (6):
Add cable test support
Add cable test TDR support
json_writer: Import the iproute2 helper code for JSON output Add --json command line argument parsing ethtool.8.in: Document the cable test commands ethtool.8.in: Add --json option

 Makefile.am          |   5 +-
 ethtool.8.in         |  53 ++++
 ethtool.c            |  46 +++-
 internal.h           |   4 +
 json_writer.c        | 389 +++++++++++++++++++++++++++
 json_writer.h        |  76 ++++++
 netlink/cable_test.c | 624 +++++++++++++++++++++++++++++++++++++++++++
 netlink/extapi.h     |   4 +
 netlink/monitor.c    |   8 +
 netlink/netlink.h    |   5 +-
 netlink/parser.c     |  41 +++
 netlink/parser.h     |   4 +
 12 files changed, 1245 insertions(+), 14 deletions(-)
 create mode 100644 json_writer.c
 create mode 100644 json_writer.h
 create mode 100644 netlink/cable_test.c
Signature · 1 line
2.26.2