From e806385c6deaba31b7f81931c44e7867a2ebdfb7 Mon Sep 17 00:00:00 2001 From: Somnath Kotur Date: Thu, 18 Nov 2021 09:34:39 +0530 Subject: [PATCH] net/bnxt: fix autoneg on PAM4 links If autonegotiation was enabled, driver was not passing the 'auto_pam4_link_speeds' obtained during init and stored in bp->link_info to bnxt_hwrm_port_phy_cfg(). This would result in an incorrect setting being passed to the HW during PHY configuration. This in turn, would result in invalid settings being retrieved and configured in subsequent application loads resulting in launch failures. Bugzilla ID: 791 Fixes: c23f9ded0391 ("net/bnxt: support 200G PAM4 link") Cc: stable@dpdk.org Reported-by: Charles Brett Reviewed-by: Ajit Khaparde Signed-off-by: Somnath Kotur --- drivers/net/bnxt/bnxt_hwrm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 6de3b92c40..7f51c61097 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -3247,6 +3247,8 @@ int bnxt_set_hwrm_link_config(struct bnxt *bp, bool link_up) link_req.auto_link_speed_mask = bnxt_parse_eth_link_speed_mask(bp, dev_conf->link_speeds); + link_req.auto_pam4_link_speeds = + bp->link_info->auto_pam4_link_speeds; } else { if (bp->link_info->phy_type == HWRM_PORT_PHY_QCFG_OUTPUT_PHY_TYPE_BASET || -- 2.39.5