net/bnxt: fix autoneg on PAM4 links
authorSomnath Kotur <somnath.kotur@broadcom.com>
Thu, 18 Nov 2021 04:04:39 +0000 (09:34 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 18 Nov 2021 04:47:50 +0000 (05:47 +0100)
commite806385c6deaba31b7f81931c44e7867a2ebdfb7
treed62ee48d0d2b96a179a5e0c6f9b429e4e2021cf1
parent878722e760a7cb3a23c40db13512fc548c5ab09b
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 <cfb@hpe.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c