mbox series

[iwl-next,0/2] ethtool: Add link mode maps for forced speeds

Message ID 20230921135140.1134153-1-pawel.chmielewski@intel.com (mailing list archive)
Headers show
Series ethtool: Add link mode maps for forced speeds | expand

Message

Pawel Chmielewski Sept. 21, 2023, 1:51 p.m. UTC
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/20230823180633.2450617-1-pawel.chmielewski@intel.com

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

Paul Greenwalt (1):
  ethtool: Add forced speed to supported link modes maps

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  | 201 ++++++++++++------
 drivers/net/ethernet/intel/ice/ice_main.c     |   2 +
 .../net/ethernet/qlogic/qede/qede_ethtool.c   |  24 +--
 include/linux/ethtool.h                       |  20 ++
 net/ethtool/ioctl.c                           |  15 ++
 6 files changed, 178 insertions(+), 85 deletions(-)

Comments

Przemek Kitszel Sept. 22, 2023, 11:05 a.m. UTC | #1
On 9/21/23 15:51, Pawel Chmielewski wrote:
> 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/20230823180633.2450617-1-pawel.chmielewski@intel.com
> 
> Changelog:
> v1->v2:
> Fixed formatting, typo, moved declaration of iterator to loop line.
> 
> Paul Greenwalt (1):
>    ethtool: Add forced speed to supported link modes maps
> 
> 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  | 201 ++++++++++++------
>   drivers/net/ethernet/intel/ice/ice_main.c     |   2 +
>   .../net/ethernet/qlogic/qede/qede_ethtool.c   |  24 +--
>   include/linux/ethtool.h                       |  20 ++
>   net/ethtool/ioctl.c                           |  15 ++
>   6 files changed, 178 insertions(+), 85 deletions(-)
> 

Thanks,
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>

(one minor whitespace error found,
for me personally we could go with it)