git: c75f0a568ef6 - stable/14 - if_bnxt: Enabled support for 1G SX, CX, and LX forced speed settings

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 03 Jun 2024 19:24:50 UTC
The branch stable/14 has been updated by imp:

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

commit c75f0a568ef6169cd92e15af130f095981fcdaef
Author:     Chandrakanth Patil <chandrakanth.patil@broadcom.com>
AuthorDate: 2024-03-06 13:15:32 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-06-03 19:23:13 +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
    
    (cherry picked from commit 0f8d1a9e0cd26bf4dd0b2fe2d28c1ab15d03cce4)
---
 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 1432587cbd4a..5edb678ac444 100644
--- a/sys/dev/bnxt/if_bnxt.c
+++ b/sys/dev/bnxt/if_bnxt.c
@@ -2083,6 +2083,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;