Skip to contentSkip to conversation

ice: fix 200G link speed message log

PATCH In review Paul Greenwalt 3 participants 3 messages May 30, 2024 – Jun 6, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ice: fix 200G link speed message log

Commit 24407a01e57c ("ice: Add 200G speed/phy type use") added support for 200G PHY speeds, but did not include 200G link speed message support. As a result the driver incorrectly reports Unknown for 200G link speed.

Fix this by adding 200G support to ice_print_link_msg().

Fixes 24407a01e57c ("ice: Add 200G speed/phy type use")
---
 drivers/net/ethernet/intel/ice/ice_main.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/intel/ice/ice_main.c +3 -0
index 1b61ca3a6eb6..899f9a07bfa8 100644
@@ -805,6 +805,9 @@ void ice_print_link_msg(struct ice_vsi *vsi, bool isup)
 	}
 
 	switch (vsi->port_info->phy.link_info.link_speed) {
+	case ICE_AQ_LINK_SPEED_200GB:
+		speed = "200 G";
+		break;
 	case ICE_AQ_LINK_SPEED_100GB:
 		speed = "100 G";
 		break;
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Paul Greenwalt

Commit 24407a01e57c ("ice: Add 200G speed/phy type use") added support for 200G PHY speeds, but did not include 200G link speed message support. As a result the driver incorrectly reports Unknown for 200G link speed.

Fix this by adding 200G support to ice_print_link_msg().

Fixes 24407a01e57c ("ice: Add 200G speed/phy type use")
Tested-by on v1 1/1
#2 lore raw
In reply to Paul Greenwalt
Quoted 9 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Paul Greenwalt
Sent: Thursday, May 30, 2024 10:36 PM
To: [email protected]
Cc: Michal Swiatkowski <[email protected]>; Greenwalt, Paul <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-net v1] ice: fix 200G link speed message log

Commit 24407a01e57c ("ice: Add 200G speed/phy type use") added support for 200G PHY speeds, but did not include 200G link speed message support. As a result the driver incorrectly reports Unknown for 200G link speed.

Quoted 9 lines

Fix this by adding 200G support to ice_print_link_msg().

Fixes 24407a01e57c ("ice: Add 200G speed/phy type use")
---
 drivers/net/ethernet/intel/ice/ice_main.c | 3 +++
 1 file changed, 3 insertions(+)