Skip to content

ethtool: Add link mode maps for forced speeds

Paul Greenwalt intel-wired-lan netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest3 patches 3 repliesApplied 3/3

Changes in v5 from the cover letter

Separated ethtool and qede changes into two patches, fixed indentation, and moved ethtool_forced_speed_maps_init() from ioctl.c to ethtool.h

Patches in v5 All 3 applied

#Subject and filesSizeRepliesApplied
1/3ethtool: Add forced speed to supported link modes mapsinclude/linux/ethtool.h include/linux/linkmode.h+52 -141 replyApplied
2/3qede: Refactor qede_forced_speed_maps_init()drivers/net/ethernet/qlogic/qede/qede_ethtool.c+12 -341 replyApplied
3/3ice: Refactor finding advertised link speeddrivers/net/ethernet/intel/ice/ice.h drivers/net/ethernet/intel/ice/ice_ethtool.c drivers/net/ethernet/intel/ice/ice_main.c+131 -651 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJacob KellerPrzemek KitszelSimon Horman
1/3R-b R-b R-b
2/3R-b R-b R-b
3/3R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH net-next v5 0/3] ethtool: Add link mode maps for forced speeds

The following patch set was initially a part of [1]. As the purpose of the original series was to add the support of the new hardware to the intel ice driver, the refactoring of advertised link modes mapping was extracted to a new set.

The patch set adds a common mechanism for mapping Ethtool forced speeds with Ethtool supported link modes, which can be used in drivers code.

[1] https://lore.kernel.org/netdev/[email protected]

Changelog:
v4->v5:
Separated ethtool and qede changes into two patches, fixed indentation, and moved ethtool_forced_speed_maps_init() from ioctl.c to ethtool.h

v3->v4:
Moved the macro for setting fields into the common header file

v2->v3:
Fixed whitespaces, added missing line at end of file

v1->v2:
Fixed formatting, typo, moved declaration of iterator to loop line.

Paul Greenwalt (2):
ethtool: Add forced speed to supported link modes maps
qede: Refactor qede_forced_speed_maps_init()

Pawel Chmielewski (1):
ice: Refactor finding advertised link speed

 drivers/net/ethernet/intel/ice/ice.h          |   1 +
 drivers/net/ethernet/intel/ice/ice_ethtool.c  | 193 ++++++++++++------
 drivers/net/ethernet/intel/ice/ice_main.c     |   2 +
 .../net/ethernet/qlogic/qede/qede_ethtool.c   |  46 ++---
 include/linux/ethtool.h                       |  37 ++++
 include/linux/linkmode.h                      |  29 +--
 6 files changed, 195 insertions(+), 113 deletions(-)

base-commit: ac4dec3fd63c7da703c244698fc92efb411ff0d4

Signature · 1 line
2.40.0