patch 'net/bnxt: fix bad action offset in Tx BD' has been queued to stable release 21.11.9
Kevin Traynor
ktraynor at redhat.com
Wed Nov 27 18:18:47 CET 2024
Hi,
FYI, your patch has been queued to stable release 21.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/02/24. 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/24aedec98e4ec42274a223eb41ffd85c56f95e8e
Thanks.
Kevin
---
>From 24aedec98e4ec42274a223eb41ffd85c56f95e8e Mon Sep 17 00:00:00 2001
From: Peter Spreadborough <peter.spreadborough at broadcom.com>
Date: Tue, 16 Apr 2024 14:15:56 -0400
Subject: [PATCH] net/bnxt: fix bad action offset in Tx BD
[ upstream commit b019ddf9b1de65491b4c07c25bbab3dc70c15f79 ]
This change ensures that the high part of an action table entry
offset stored in the Tx BD is set correctly. A bad value will
cause the PDCU to abort a fetch an may stall the pipeline.
Fixes: 527b10089cc5 ("net/bnxt: optimize Tx completion handling")
Signed-off-by: Peter Spreadborough <peter.spreadborough at broadcom.com>
Reviewed-by: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
---
drivers/net/bnxt/bnxt_txr.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c
index 14d0862548..955d7eb13c 100644
--- a/drivers/net/bnxt/bnxt_txr.c
+++ b/drivers/net/bnxt/bnxt_txr.c
@@ -235,8 +235,13 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,
txbd1->kid_or_ts_high_mss = 0;
- if (txq->vfr_tx_cfa_action)
- txbd1->cfa_action = txq->vfr_tx_cfa_action;
- else
- txbd1->cfa_action = txq->bp->tx_cfa_action;
+ if (txq->vfr_tx_cfa_action) {
+ txbd1->cfa_action = txq->vfr_tx_cfa_action & 0xffff;
+ txbd1->cfa_action_high = (txq->vfr_tx_cfa_action >> 16) &
+ TX_BD_LONG_CFA_ACTION_HIGH_MASK;
+ } else {
+ txbd1->cfa_action = txq->bp->tx_cfa_action & 0xffff;
+ txbd1->cfa_action_high = (txq->bp->tx_cfa_action >> 16) &
+ TX_BD_LONG_CFA_ACTION_HIGH_MASK;
+ }
if (tx_pkt->ol_flags & RTE_MBUF_F_TX_TCP_SEG) {
--
2.47.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2024-11-27 17:17:41.403877248 +0000
+++ 0100-net-bnxt-fix-bad-action-offset-in-Tx-BD.patch 2024-11-27 17:17:38.312269824 +0000
@@ -1 +1 @@
-From b019ddf9b1de65491b4c07c25bbab3dc70c15f79 Mon Sep 17 00:00:00 2001
+From 24aedec98e4ec42274a223eb41ffd85c56f95e8e Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b019ddf9b1de65491b4c07c25bbab3dc70c15f79 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 38f858f27f..c82b11e733 100644
+index 14d0862548..955d7eb13c 100644
@@ -24 +25 @@
-@@ -309,8 +309,13 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,
+@@ -235,8 +235,13 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,
@@ -41 +42 @@
- if (tx_pkt->ol_flags & RTE_MBUF_F_TX_TCP_SEG ||
+ if (tx_pkt->ol_flags & RTE_MBUF_F_TX_TCP_SEG) {
More information about the stable
mailing list