Skip to content

Add ability to flash modules' firmware

Danielle Ratson netdev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v14 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* Remove patch #3 of updating header, since it was already done.
* s/ETHTOOL_A_MODULE_FW_FLASH_PASS/ETHTOOL_A_MODULE_FW_FLASH_PASSWORD

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cmis: Print active and inactive firmware versionscmis.c cmis.h+53 -00 replies
2/3cmis: Print CDB messaging support advertisementcmis.c cmis.h+91 -00 replies
3/3ethtool: Add ability to flash transceiver modules' firmwareethtool.8.in ethtool.c netlink/desc-ethtool.c +6 more+284 -00 replies

Reviews trailers per patch

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

PatchPetr Machata
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH ethtool-next v2 0/3] Add ability to flash modules' firmware

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: adds ability to flash modules' firmware.

v2:
* Remove patch #3 of updating header, since it was already done.
* s/ETHTOOL_A_MODULE_FW_FLASH_PASS/ETHTOOL_A_MODULE_FW_FLASH_PASSWORD

Danielle Ratson (1):
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 +++++
 11 files changed, 428 insertions(+)
Signature · 1 line
2.45.0