Skip to content

RFC ethtool: Add ability to control transceiver modules' power mode

Ido Schimmel netdev 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 posting 3/36 patches 0 repliesApplied 6/6
  2. v3 RFC Latest posting 2/26 patches 0 repliesNew
  3. v3 RFC posting 1/26 patches 7 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 RFC posting 2/36 patches0 repliesSuperseded
v2 RFC posting 1/36 patches9 repliesSuperseded
v1 RFC6 patches0 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Update UAPI header copiesuapi/linux/ethtool.h uapi/linux/ethtool_netlink.h uapi/linux/if_link.h +2 more+106 -70 replies
2/6ethtool: Add ability to control transceiver modules' power modeMakefile.am ethtool.8.in ethtool.c +6 more+259 -10 replies
3/6ethtool: Print CMIS Module Statecmis.c cmis.h+86 -00 replies
4/6ethtool: Print CMIS Module-Level Controlscmis.c cmis.h+21 -00 replies
5/6ethtool: Print SFF-8636 Power set and Power override bitsqsfp.c qsfp.h+7 -10 replies
6/6ethtool: Add transceiver module extended statesnetlink/settings.c+12 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC PATCH ethtool-next v3 0/6] ethtool: Add ability to control transceiver modules' power mode

From: Ido Schimmel <[email protected]>

Patch #1 updates the UAPI headers.

Patch #2 adds the actual implementation that allows user space to control transceiver modules' 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 power mode of the modules.

Patch #6 adds support for two new extended link states in order to allow user space to troubleshoot link down issues related to transceiver modules. See the commit message for example output.

Ido Schimmel (6):
Update UAPI header copies
ethtool: Add ability to control transceiver modules' 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 transceiver module extended states

 Makefile.am                   |   2 +-
 cmis.c                        |  87 +++++++++++++++++
 cmis.h                        |  20 ++++
 ethtool.8.in                  |  25 +++++
 ethtool.c                     |  11 +++
 netlink/desc-ethtool.c        |  11 +++
 netlink/extapi.h              |   4 +
 netlink/module.c              | 179 ++++++++++++++++++++++++++++++++++
 netlink/monitor.c             |   4 +
 netlink/netlink.h             |   1 +
 netlink/settings.c            |  12 +++
 qsfp.c                        |   6 ++
 qsfp.h                        |   2 +-
 shell-completion/bash/ethtool |  23 +++++
 uapi/linux/ethtool.h          |  36 ++++++-
 uapi/linux/ethtool_netlink.h  |  34 ++++++-
 uapi/linux/if_link.h          |  21 ++++
 uapi/linux/net_tstamp.h       |  17 +++-
 uapi/linux/netlink.h          |   5 +-
 19 files changed, 491 insertions(+), 9 deletions(-)
 create mode 100644 netlink/module.c
Signature · 1 line
2.31.1