OSDN Git Service

ice: refactor PHY type to ethtool link mode
authorPaul Greenwalt <paul.greenwalt@intel.com>
Wed, 26 Apr 2023 18:50:46 +0000 (11:50 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 17 May 2023 15:42:10 +0000 (08:42 -0700)
commit9136e1f1e5c3f3409b09764556f33fd6353cad60
treea11fd23b1de87934eba8e7ad794ff6cb867c05a4
parent578fb0926c127d1b11b01b0102605efde9be9f41
ice: refactor PHY type to ethtool link mode

Refactor ice_phy_type_to_ethtool to use phy_type_[low|high]_lkup table to
map PHY type to AQ link speed and ethtool link mode. This removes
complexity and simplifies future changes.

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_ethtool.c
drivers/net/ethernet/intel/ice/ice_ethtool.h [new file with mode: 0644]