[PATCH v1 01/22] net/ixgbe/base: revert remove default advertising for x550 2.5G/5G

Anatoly Burakov anatoly.burakov at intel.com
Wed Apr 24 15:21:35 CEST 2024


From: Piotr Pietruszewski <piotr.pietruszewski at intel.com>

This reverts the following commit:

    13de2444449e ("net/ixgbe/base: remove default advertising for x550 2.5G/5G")

The commit removing advertising 2.5G and 5G speeds from
ixgbe_get_copper_speeds_supported() was supposed to disable 2.5G and 5G
during the autonegotiation with default settings. However, that change
prevented OS-specific part of the driver from forcing these speeds at
user request.

This change reverts the commit and adds 2.5G and 5G as speeds supported
by the X550.

Cc: stable at dpdk.org

Signed-off-by: Piotr Pietruszewski <piotr.pietruszewski at intel.com>
Reviewed-by: Skajewski, PiotrX <piotrx.skajewski at intel.com>
Reviewed-by: Marek Mical <marekx.mical at intel.com>
Reviewed-by: Kirsher, Jeffrey T <jeffrey.t.kirsher at intel.com>
Reviewed-by: Michael, Alice <alice.michael at intel.com>
---
 drivers/net/ixgbe/base/ixgbe_phy.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ixgbe/base/ixgbe_phy.c b/drivers/net/ixgbe/base/ixgbe_phy.c
index 74c5db16fa..3a8e603472 100644
--- a/drivers/net/ixgbe/base/ixgbe_phy.c
+++ b/drivers/net/ixgbe/base/ixgbe_phy.c
@@ -915,6 +915,10 @@ static s32 ixgbe_get_copper_speeds_supported(struct ixgbe_hw *hw)
 		hw->phy.speeds_supported |= IXGBE_LINK_SPEED_100_FULL;
 
 	switch (hw->mac.type) {
+	case ixgbe_mac_X550:
+		hw->phy.speeds_supported |= IXGBE_LINK_SPEED_2_5GB_FULL;
+		hw->phy.speeds_supported |= IXGBE_LINK_SPEED_5GB_FULL;
+		break;
 	case ixgbe_mac_X550EM_x:
 	case ixgbe_mac_X550EM_a:
 		hw->phy.speeds_supported &= ~IXGBE_LINK_SPEED_100_FULL;
-- 
2.43.0



More information about the stable mailing list