netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ethtool-next 0/4] Add ability to flash modules' firmware
@ 2024-07-16 13:11 Danielle Ratson
  2024-07-16 13:11 ` [PATCH ethtool-next 1/4] cmis: Print active and inactive firmware versions Danielle Ratson
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Danielle Ratson @ 2024-07-16 13:11 UTC (permalink / raw)
  To: netdev; +Cc: mkubecek, mlxsw, Danielle Ratson

CMIS compliant modules such as QSFP-DD might be running a firmware that
can be updated in a vendor-neutral way by exchanging messages between
the host and the module as described in section 7.2.2 of revision
4.0 of the CMIS standard.

Add ability to flash transceiver modules' firmware over netlink.

Example output:

 # ethtool --flash-module-firmware eth0 file test.img

Transceiver module firmware flashing started for device swp23
Transceiver module firmware flashing in progress for device swp23
Progress: 99%
Transceiver module firmware flashing completed for device swp23

In addition, add some firmware and CDB messaging information to
ethtool's output for observability.

Patchset overview:
Patches #1-#2: adds firmware info to ethtool's output.
Patch #3: updates headers.
Patch #4: adds ability to flash modules' firmware.

Danielle Ratson (2):
  Update UAPI header copies
  ethtool: Add ability to flash transceiver modules' firmware

Ido Schimmel (2):
  cmis: Print active and inactive firmware versions
  cmis: Print CDB messaging support advertisement

 cmis.c                        | 125 +++++++++++++++++++++++
 cmis.h                        |  19 ++++
 ethtool.8.in                  |  29 ++++++
 ethtool.c                     |   7 ++
 netlink/desc-ethtool.c        |  13 +++
 netlink/extapi.h              |   2 +
 netlink/module.c              | 183 ++++++++++++++++++++++++++++++++++
 netlink/netlink.h             |  16 +++
 netlink/prettymsg.c           |   5 +
 netlink/prettymsg.h           |   2 +
 shell-completion/bash/ethtool |  27 +++++
 uapi/linux/ethtool.h          |  18 ++++
 uapi/linux/ethtool_netlink.h  |  19 ++++
 13 files changed, 465 insertions(+)

-- 
2.45.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-08-11  8:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-16 13:11 [PATCH ethtool-next 0/4] Add ability to flash modules' firmware Danielle Ratson
2024-07-16 13:11 ` [PATCH ethtool-next 1/4] cmis: Print active and inactive firmware versions Danielle Ratson
2024-07-16 13:11 ` [PATCH ethtool-next 2/4] cmis: Print CDB messaging support advertisement Danielle Ratson
2024-07-16 13:11 ` [PATCH ethtool-next 3/4] Update UAPI header copies Danielle Ratson
2024-07-16 13:11 ` [PATCH ethtool-next 4/4] ethtool: Add ability to flash transceiver modules' firmware Danielle Ratson
2024-07-30 10:52 ` [PATCH ethtool-next 0/4] Add ability to flash " Danielle Ratson
2024-08-09 23:06 ` Michal Kubecek
2024-08-11  8:22   ` Danielle Ratson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).