patch 'net/bnxt: fix IOVA range check for external mbuf' has been queued to stable release 25.11.3
Kevin Traynor
ktraynor at redhat.com
Tue Jul 28 17:55:55 CEST 2026
Hi,
FYI, your patch has been queued to stable release 25.11.3
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/01/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/93073fe08fd61baca41ff12ae2f521aa0c286f2e
Thanks.
Kevin
---
>From 93073fe08fd61baca41ff12ae2f521aa0c286f2e Mon Sep 17 00:00:00 2001
From: Mohammad Shuab Siddique <mohammad-shuab.siddique at broadcom.com>
Date: Wed, 20 May 2026 23:45:20 -0600
Subject: [PATCH] net/bnxt: fix IOVA range check for external mbuf
[ upstream commit 41f3faf0ce4a062b2bcd08bff68f4b5d2fa7400f ]
For extmem, the mbuf head node may be allocated from a pool
different from the data buffer pool. In that case the IOVA
address check using rte_mempool_virt2iova() will fail. To fix
this, skip the IOVA range check for external mbufs.
Also add unlikely() in checking invalid mbuf size.
Fixes: d01de33f98e2 ("net/bnxt: skip IOVA range check for external mbuf")
Signed-off-by: Damodharam Ammepalli <damodharam.ammepalli at broadcom.com>
Signed-off-by: Mohammad Shuab Siddique <mohammad-shuab.siddique at broadcom.com>
---
drivers/net/bnxt/bnxt_txr.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c
index 28171b273a..ccfc3bea65 100644
--- a/drivers/net/bnxt/bnxt_txr.c
+++ b/drivers/net/bnxt/bnxt_txr.c
@@ -221,6 +221,8 @@ static int bnxt_invalid_mbuf(struct rte_mbuf *mbuf)
return -EINVAL;
- if (unlikely(!(mbuf->ol_flags & RTE_MBUF_F_EXTERNAL) &&
- (mbuf->buf_iova < mbuf_size ||
+ if (unlikely(mbuf->ol_flags & RTE_MBUF_F_EXTERNAL))
+ return 0;
+
+ if (unlikely((mbuf->buf_iova < mbuf_size ||
(mbuf->buf_iova != rte_mempool_virt2iova(mbuf) + mbuf_size))))
return -EINVAL;
--
2.55.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-28 16:54:51.551814170 +0100
+++ 0025-net-bnxt-fix-IOVA-range-check-for-external-mbuf.patch 2026-07-28 16:54:50.765625146 +0100
@@ -1 +1 @@
-From 41f3faf0ce4a062b2bcd08bff68f4b5d2fa7400f Mon Sep 17 00:00:00 2001
+From 93073fe08fd61baca41ff12ae2f521aa0c286f2e Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 41f3faf0ce4a062b2bcd08bff68f4b5d2fa7400f ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index 44b9d1fb19..4ec6cc2bfd 100644
+index 28171b273a..ccfc3bea65 100644
More information about the stable
mailing list