net/bnxt: fix auto-negociation on Whitney+
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 9 Jun 2021 03:13:31 +0000 (08:43 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 8 Jul 2021 03:55:50 +0000 (05:55 +0200)
commit70c7d4184cb9a32ab6c65ce67ce5fbe3a5be5294
tree8a525da8c7ff9c1e6ba14aff454be4b994bc20d7
parenta3a1db0abf9bedf65c716802db458ded03c800b1
net/bnxt: fix auto-negociation on Whitney+

Driver should enable autoneg on a port if FW supports it.
Because of a wrong check, driver is not enabling autoneg
on a port after setting forced speed on Whitney+.

Fixes: 7bc8e9a227cc ("net/bnxt: support async link notification")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c