patch 'net/bnxt: fix Tx address for external mbuf' has been queued to stable release 24.11.7
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Jun 11 15:20:58 CEST 2026
Hi,
FYI, your patch has been queued to stable release 24.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/13/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/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/8501c7719f5600102ee2643c16ab4f965fcd132c
Thanks.
Luca Boccassi
---
>From 8501c7719f5600102ee2643c16ab4f965fcd132c Mon Sep 17 00:00:00 2001
From: Ajit Khaparde <ajit.khaparde at broadcom.com>
Date: Wed, 3 Jan 2024 07:14:20 -0800
Subject: [PATCH] net/bnxt: fix Tx address for external mbuf
[ upstream commit cb49ce368e83b2eb4a249d1d20f1da199be6d6c8 ]
Use buf_addr for mbufs from external pool instead of using iova
addresses. Uses rte_pktmbuf_mtod_offset() to compute the buffer
address for both the first segment and subsequent segments when
the mbuf is marked as RTE_MBUF_F_EXTERNAL.
Fixes: 42b883535804 ("net/bnxt: use new API to get IOVA address")
Signed-off-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
Signed-off-by: Mohammad Shuab Siddique <mohammad-shuab.siddique at broadcom.com>
---
drivers/net/bnxt/bnxt_txr.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c
index 9a5bcec177..872e690a8a 100644
--- a/drivers/net/bnxt/bnxt_txr.c
+++ b/drivers/net/bnxt/bnxt_txr.c
@@ -324,7 +324,10 @@ static int bnxt_start_xmit(struct rte_mbuf *tx_pkt,
txbd->flags_type |= TX_BD_LONG_FLAGS_LHINT_GTE2K;
else
txbd->flags_type |= lhint_arr[tx_pkt->pkt_len >> 9];
- txbd->address = rte_cpu_to_le_64(rte_mbuf_data_iova(tx_pkt));
+ if (tx_pkt->ol_flags & RTE_MBUF_F_EXTERNAL)
+ txbd->address = rte_cpu_to_le_64(rte_pktmbuf_mtod_offset(tx_pkt, uint64_t, 0));
+ else
+ txbd->address = rte_cpu_to_le_64(rte_mbuf_data_iova(tx_pkt));
*last_txbd = txbd;
if (long_bd) {
@@ -481,7 +484,12 @@ static int bnxt_start_xmit(struct rte_mbuf *tx_pkt,
*tx_buf = m_seg;
txbd = &txr->tx_desc_ring[prod];
- txbd->address = rte_cpu_to_le_64(rte_mbuf_data_iova(m_seg));
+ if (m_seg->ol_flags & RTE_MBUF_F_EXTERNAL)
+ txbd->address = rte_cpu_to_le_64(rte_pktmbuf_mtod_offset(m_seg,
+ uint64_t,
+ 0));
+ else
+ txbd->address = rte_cpu_to_le_64(rte_mbuf_data_iova(m_seg));
txbd->flags_type = TX_BD_SHORT_TYPE_TX_BD_SHORT;
txbd->len = m_seg->data_len;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-06-11 14:20:05.614739289 +0100
+++ 0109-net-bnxt-fix-Tx-address-for-external-mbuf.patch 2026-06-11 14:20:01.370749774 +0100
@@ -1 +1 @@
-From cb49ce368e83b2eb4a249d1d20f1da199be6d6c8 Mon Sep 17 00:00:00 2001
+From 8501c7719f5600102ee2643c16ab4f965fcd132c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit cb49ce368e83b2eb4a249d1d20f1da199be6d6c8 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index fb5be224d9..44b9d1fb19 100644
+index 9a5bcec177..872e690a8a 100644
@@ -24 +25 @@
-@@ -325,7 +325,10 @@ static int bnxt_start_xmit(struct rte_mbuf *tx_pkt,
+@@ -324,7 +324,10 @@ static int bnxt_start_xmit(struct rte_mbuf *tx_pkt,
@@ -36 +37 @@
-@@ -482,7 +485,12 @@ static int bnxt_start_xmit(struct rte_mbuf *tx_pkt,
+@@ -481,7 +484,12 @@ static int bnxt_start_xmit(struct rte_mbuf *tx_pkt,
More information about the stable
mailing list