mbox series

[RFC,ethtool-next,0/6] ethtool: Add ability to control transceiver modules

Message ID 20210809102256.720119-1-idosch@idosch.org (mailing list archive)
Headers show
Series ethtool: Add ability to control transceiver modules | expand

Message

Ido Schimmel Aug. 9, 2021, 10:22 a.m. UTC
From: Ido Schimmel <idosch@nvidia.com>

Patch #1 updates the UAPI headers.

Patch #2 adds the actual implementation that allows user space to set
transceiver modules' low power mode. See the commit message for example
output.

Patches #3-#5 parse more fields from SFF-8636 and CMIS EEPROMs to
provide better observability regarding the low power mode of the
modules.

Patch #6 adds the ability to reset transceiver modules. See the commit
message for example usage.

Ido Schimmel (6):
  Update UAPI header copies
  ethtool: Add ability to control transceiver modules' low power mode
  ethtool: Print CMIS Module State
  ethtool: Print CMIS Module-Level Controls
  ethtool: Print SFF-8636 Power set and Power override bits
  ethtool: Add ability to reset transceiver modules

 Makefile.am                   |   2 +-
 cmis.c                        |  52 +++++++++
 cmis.h                        |  13 +++
 ethtool.8.in                  |  24 +++++
 ethtool.c                     |  16 +++
 netlink/desc-ethtool.c        |  12 +++
 netlink/extapi.h              |   6 ++
 netlink/module.c              | 191 ++++++++++++++++++++++++++++++++++
 netlink/monitor.c             |   8 ++
 netlink/netlink.h             |   2 +
 qsfp.c                        |   6 ++
 qsfp.h                        |   2 +-
 shell-completion/bash/ethtool |  23 ++++
 uapi/linux/ethtool.h          |   4 +-
 uapi/linux/ethtool_netlink.h  |  35 ++++++-
 uapi/linux/if_link.h          |  19 ++++
 uapi/linux/net_tstamp.h       |  17 ++-
 uapi/linux/netlink.h          |   5 +-
 18 files changed, 428 insertions(+), 9 deletions(-)
 create mode 100644 netlink/module.c