git: 0f8d1a9e0cd2 - main - if_bnxt: Enabled support for 1G SX, CX, and LX forced speed settings

From: Sumit Saxena <ssaxena_at_FreeBSD.org>
Date: Thu, 07 Mar 2024 19:27:09 UTC
The branch main has been updated by ssaxena:

URL: https://cgit.FreeBSD.org/src/commit/?id=0f8d1a9e0cd26bf4dd0b2fe2d28c1ab15d03cce4

commit 0f8d1a9e0cd26bf4dd0b2fe2d28c1ab15d03cce4
Author:     Chandrakanth Patil <chandrakanth.patil@broadcom.com>
AuthorDate: 2024-03-06 13:15:32 +0000
Commit:     Sumit Saxena <ssaxena@FreeBSD.org>
CommitDate: 2024-03-07 19:16:38 +0000

    if_bnxt: Enabled support for 1G SX, CX, and LX forced speed settings
    
    Enabled User Configuration of 1G Speed on Wh+ SFP28 Port with AOC
    cable.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42953
---
 sys/dev/bnxt/if_bnxt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/bnxt/if_bnxt.c b/sys/dev/bnxt/if_bnxt.c
index 6d447e8070d5..92e448567f9e 100644
--- a/sys/dev/bnxt/if_bnxt.c
+++ b/sys/dev/bnxt/if_bnxt.c
@@ -2082,6 +2082,9 @@ bnxt_media_change(if_ctx_t ctx)
 	case IFM_1000_KX:
 	case IFM_1000_T:
 	case IFM_1000_SGMII:
+	case IFM_1000_CX:
+	case IFM_1000_SX:
+	case IFM_1000_LX:
 		softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
 		softc->link_info.req_link_speed =
 		    HWRM_PORT_PHY_CFG_INPUT_FORCE_LINK_SPEED_1GB;