patch 'net/bnxt: fix crash in HWRM capabilities query' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Feb 26 14:08:47 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/02/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/0e278edf877f25beed0f8afcf095d10925d84e1a
Thanks.
Kevin
---
>From 0e278edf877f25beed0f8afcf095d10925d84e1a Mon Sep 17 00:00:00 2001
From: Manish Kurup <manish.kurup at broadcom.com>
Date: Thu, 4 Dec 2025 17:13:03 -0500
Subject: [PATCH] net/bnxt: fix crash in HWRM capabilities query
[ upstream commit 0e2b6deb6b2590945fabee6f4cfa500977f66769 ]
Fix a segmentation fault root-caused to the following
1. bnxt testpmd queries the THOR2 capabilities using an HWRM.
2. Another HWRM is made that overwrites the capabilities context,
which results in the MPC context not being created.
3. Initializing TruFlow (which depends on the MPC context),
results in a SEGV.
The fix moves the 2nd HWRM after the capabilities have been
consumed.
Fixes: 80317ff6adfd ("net/bnxt/tf_core: support Thor2")
Signed-off-by: Manish Kurup <manish.kurup at broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
---
drivers/net/bnxt/bnxt_hwrm.c | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c
index 4d693da1d5..0cef22b5ec 100644
--- a/drivers/net/bnxt/bnxt_hwrm.c
+++ b/drivers/net/bnxt/bnxt_hwrm.c
@@ -1199,13 +1199,4 @@ static int __bnxt_hwrm_func_qcaps(struct bnxt *bp)
bp->pf->total_vnics = rte_le_to_cpu_16(resp->max_vnics);
- if (flags & HWRM_FUNC_QCAPS_OUTPUT_FLAGS_PTP_SUPPORTED) {
- if (BNXT_CHIP_P5(bp) || BNXT_PF(bp)) {
- bp->flags |= BNXT_FLAG_PTP_SUPPORTED;
- PMD_DRV_LOG_LINE(DEBUG, "PTP SUPPORTED");
- HWRM_UNLOCK();
- bnxt_hwrm_ptp_qcfg(bp);
- }
- }
-
if (flags & HWRM_FUNC_QCAPS_OUTPUT_FLAGS_EXT_STATS_SUPPORTED)
bp->flags |= BNXT_FLAG_EXT_STATS_SUPPORTED;
@@ -1264,4 +1255,16 @@ static int __bnxt_hwrm_func_qcaps(struct bnxt *bp)
bp->fw_cap |= BNXT_FW_CAP_RX_RATE_PROFILE;
+ /* This block should be kept at the end of this function because it
+ * sends another hwrm msg.
+ */
+ if (flags & HWRM_FUNC_QCAPS_OUTPUT_FLAGS_PTP_SUPPORTED) {
+ if (BNXT_CHIP_P5(bp) || BNXT_PF(bp)) {
+ bp->flags |= BNXT_FLAG_PTP_SUPPORTED;
+ PMD_DRV_LOG_LINE(DEBUG, "PTP SUPPORTED");
+ HWRM_UNLOCK();
+ bnxt_hwrm_ptp_qcfg(bp);
+ }
+ }
+
unlock:
HWRM_UNLOCK();
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-02-26 10:16:48.885850409 +0000
+++ 0045-net-bnxt-fix-crash-in-HWRM-capabilities-query.patch 2026-02-26 10:16:46.960459277 +0000
@@ -1 +1 @@
-From 0e2b6deb6b2590945fabee6f4cfa500977f66769 Mon Sep 17 00:00:00 2001
+From 0e278edf877f25beed0f8afcf095d10925d84e1a Mon Sep 17 00:00:00 2001
@@ -4,0 +5,2 @@
+
+[ upstream commit 0e2b6deb6b2590945fabee6f4cfa500977f66769 ]
More information about the stable
mailing list