Skip to content

ethtool: Module EEPROM fixes

Ido Schimmel netdev 1 version Applied

Status from this message: This series was applied to ethtool/ethtool.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5sff-8636: Fix parsing of Page 03h in IOCTL pathqsfp.c+1 -10 replies
2/5cmis: Fix invalid memory access in IOCTL pathcmis.c+1 -10 replies
3/5netlink: eeprom: Fallback to IOCTL when a complete hex/raw dump is requestednetlink/module-eeprom.c+10 -00 replies
4/5ethtool: Fix compilation warning when pretty dump is disabledethtool.c+8 -50 replies
5/5netlink: eeprom: Fix compilation when pretty dump is disablednetlink/module-eeprom.c+4 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH ethtool 0/5] ethtool: Module EEPROM fixes

From: Ido Schimmel <[email protected]>

This patchset contains fixes for various issues I noticed while working on the module EEPROM parsing code.

In addition to these fixes, I have the following submissions ready for the next branch [1]:

* Trivial coding style / documentation changes

* Reworking the EEPROM parsing code to use a memory map with pointers to individual pages as the current state is sub-optimal. In the IOCTL path, one large buffer is passed to parsers (e.g., SFF-8636, CMIS). In the netlink path, individual pages are passed, some of which might not be valid. With the proposed changes, the IOCTL and netlink paths only differ in the way they initialize the memory map. The parsing code is completely shared

* Extending the CMIS parser to request and parse diagnostic information (already present in SFF-8636) from optional / banked pages

[1] https://github.com/idosch/ethtool/commits/submit/cmis_dump_v1

Ido Schimmel (5):
sff-8636: Fix parsing of Page 03h in IOCTL path
cmis: Fix invalid memory access in IOCTL path
netlink: eeprom: Fallback to IOCTL when a complete hex/raw dump is
requested
ethtool: Fix compilation warning when pretty dump is disabled
netlink: eeprom: Fix compilation when pretty dump is disabled

 cmis.c                  |  2 +-
 ethtool.c               | 13 ++++++++-----
 netlink/module-eeprom.c | 14 ++++++++++++++
 qsfp.c                  |  2 +-
 4 files changed, 24 insertions(+), 7 deletions(-)
Signature · 1 line
2.31.1