ice: fix 200G PHY types to link speed mapping
authorPaul Greenwalt <paul.greenwalt@intel.com>
Tue, 28 May 2024 22:06:08 +0000 (15:06 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 May 2024 01:57:02 +0000 (18:57 -0700)
commit2a6d8f2de2224ac46df94dc40f43f8b9701f6703
tree1b2903ed1cac0177f0745438ac4458bc9bb4f7d9
parentc80b6538d35a7a60d874c5a76c3c5a82b6a28fbb
ice: fix 200G PHY types to link speed mapping

Commit 24407a01e57c ("ice: Add 200G speed/phy type use") added support
for 200G PHY speeds, but did not include the mapping of 200G PHY types
to link speed. As a result the driver is returning UNKNOWN link speed
when setting 200G ethtool advertised link modes.

To fix this add 200G PHY types to link speed mapping to
ice_get_link_speed_based_on_phy_type().

Fixes: 24407a01e57c ("ice: Add 200G speed/phy type use")
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20240528-net-2024-05-28-intel-net-fixes-v1-5-dc8593d2bbc6@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_common.c