[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200705175452.886377-1-andrew@lunn.ch>
Date: Sun, 5 Jul 2020 19:54:46 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Michal Kubecek <mkubecek@...e.cz>
Cc: netdev <netdev@...r.kernel.org>, Chris Healy <cphealy@...il.com>,
Andrew Lunn <andrew@...n.ch>
Subject: [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
--
2.26.2
Powered by blists - more mailing lists