numam-dpdk/drivers/net/bnxt
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
..
hcapi/cfa net/bnxt: cleanup ULP parser and mapper 2021-07-08 02:02:14 +02:00
tf_core net/bnxt: fix null dereference in session cleanup 2022-03-07 06:13:05 +01:00
tf_ulp net/bnxt: fix ULP parser to ignore segment offset 2022-05-23 02:45:41 +02:00
bnxt_cpr.c ethdev: introduce generic dummy packet burst function 2022-02-11 21:17:34 +01:00
bnxt_cpr.h net/bnxt: remove some dead code 2022-05-23 02:48:42 +02:00
bnxt_ethdev.c net/bnxt: cleanup MTU setting 2022-06-24 23:24:19 +02:00
bnxt_filter.c net/bnxt: fix freeing VNIC filters 2022-05-10 07:14:20 +02:00
bnxt_filter.h net/bnxt: enhance RSS action support 2021-10-12 22:36:10 +02:00
bnxt_flow.c net/bnxt: handle queue stop during RSS flow create 2022-05-10 07:13:29 +02:00
bnxt_hwrm.c net/bnxt: fix check for autoneg enablement in the PHY FW 2022-06-24 23:26:18 +02:00
bnxt_hwrm.h net/bnxt: fix setting forced speed 2022-06-24 23:24:08 +02:00
bnxt_irq.c drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
bnxt_irq.h net/bnxt: rename a member to avoid conflict 2021-03-12 07:13:49 +01:00
bnxt_nvm_defs.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_reps.c net/bnxt: fix device capability reporting 2022-05-10 07:09:59 +02:00
bnxt_reps.h ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
bnxt_ring.c net/bnxt: set HW coalescing parameters 2022-02-09 06:49:01 +01:00
bnxt_ring.h net/bnxt: fix ring and context memory allocation 2021-07-08 05:55:52 +02:00
bnxt_rxq.c net/bnxt: cleanup MTU setting 2022-06-24 23:24:19 +02:00
bnxt_rxq.h net/bnxt: use compiler atomics for statistics 2022-05-23 02:48:34 +02:00
bnxt_rxr.c net/bnxt: use compiler atomics for statistics 2022-05-23 02:48:34 +02:00
bnxt_rxr.h mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
bnxt_rxtx_vec_avx2.c net/bnxt: remove software prefetches from AVX2 Rx 2021-11-16 23:57:27 +01:00
bnxt_rxtx_vec_common.h ethdev: add namespace 2021-10-22 18:15:38 +02:00
bnxt_rxtx_vec_neon.c net/bnxt: reduce barriers in NEON vector Rx 2022-06-24 23:22:09 +02:00
bnxt_rxtx_vec_sse.c ethdev: add namespace 2021-10-22 18:15:38 +02:00
bnxt_stats.c net/bnxt: use compiler atomics for statistics 2022-05-23 02:48:34 +02:00
bnxt_stats.h net/bnxt: drop unused attribute 2021-04-24 21:23:09 +02:00
bnxt_txq.c net/bnxt: fix tunnel stateless offloads 2022-05-10 07:10:56 +02:00
bnxt_txq.h net/bnxt: fix device capability reporting 2022-05-10 07:09:59 +02:00
bnxt_txr.c net/bnxt: remove assert for zero data length in Tx 2022-06-24 23:23:11 +02:00
bnxt_txr.h mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
bnxt_util.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_util.h net/bnxt: add action SRAM translation 2021-07-08 01:56:51 +02:00
bnxt_vnic.c net/bnxt: fix memzone allocation per VNIC 2022-01-25 05:45:28 +01:00
bnxt_vnic.h net/bnxt: fix memzone allocation per VNIC 2022-01-25 05:45:28 +01:00
bnxt.h net/bnxt: force PHY update on certain configurations 2022-05-10 07:13:48 +02:00
hsi_struct_def_dpdk.h net/bnxt: update HWRM structures 2022-05-10 07:09:38 +02:00
meson.build net/bnxt: remove stale compilation option 2021-10-28 19:58:54 +02:00
rte_pmd_bnxt.c ethdev: add namespace 2021-10-22 18:15:38 +02:00
rte_pmd_bnxt.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00