numam-dpdk/drivers
Somnath Kotur 0f0f2fd444 net/bnxt: fix check for autoneg enablement in the PHY FW
The current combination of checks to determine whether autoneg is
enabled in the card is a bit convoluted and may become incorrect
as well in the future as one of the fields being used - auto_link_speed
might become deprecated.
Switch to using the 'auto_mode' field obtained from the response of
HWRM_PHY_QCFG cmd as that is always deterministically set by the PHY
FW.
Fixed a bug in the 40G check to only look for the bit setting and
not the actual value.
Also, check the forced speeds first before trying to enforce the
auto speeds

Allow the user to set autoneg speed in all cases except for PAM4 200G
as PAM4 200G will come up only in forced mode.

Fixes: c23f9ded03 ("net/bnxt: support 200G PAM4 link")
Cc: stable@dpdk.org

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2022-06-24 23:26:18 +02:00
..
baseband baseband/acc100: configure ACC101 from PF 2022-06-21 20:04:49 +02:00
bus bus/fslmc: fix VFIO setup 2022-06-07 20:49:20 +02:00
common remove unnecessary null checks 2022-06-24 14:51:09 +02:00
compress compress/octeontx: support OCTEON TX2 SoC family 2022-04-29 11:36:46 +02:00
crypto crypto/qat: use intel-ipsec-mb for partial hash and AES 2022-06-21 20:04:50 +02:00
dma dma/idxd: fix non-AVX builds with old compilers 2022-06-26 10:27:15 +02:00
event remove unnecessary null checks 2022-06-24 14:51:09 +02:00
gpu gpu/cuda: unmap GPU memory while freeing 2022-05-24 23:09:49 +02:00
mempool common/cnxk: support CNF10KB SoC 2022-06-17 14:18:33 +02:00
net net/bnxt: fix check for autoneg enablement in the PHY FW 2022-06-24 23:26:18 +02:00
raw raw/ifpga/base: check null pointer in PMCI 2022-06-26 12:20:44 +02:00
regex replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
vdpa remove unnecessary null checks 2022-06-24 14:51:09 +02:00
meson.build build: add definitions for use as Meson subproject 2022-06-07 20:49:20 +02:00