patch 'net/cnxk: fix extbuf handling for multisegment packet' has been queued to stable release 23.11.2

Xueming Li xuemingl at nvidia.com
Fri Jul 12 12:44:58 CEST 2024


Hi,

FYI, your patch has been queued to stable release 23.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/14/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://git.dpdk.org/dpdk-stable/log/?h=23.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=f20821ca949187f1b17468bfe07b08b1ef9f8eab

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From f20821ca949187f1b17468bfe07b08b1ef9f8eab Mon Sep 17 00:00:00 2001
From: Rakesh Kudurumalla <rkudurumalla at marvell.com>
Date: Tue, 28 May 2024 12:35:15 +0530
Subject: [PATCH] net/cnxk: fix extbuf handling for multisegment packet
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit e6aa5408155471f7a6c8bd5ee9bfb7466a26d165 ]

Avoid double free of extbuf when during TX path in
multisegmented packet with extbuf as one of segment.

Fixes: dd9446991212 ("net/cnxk: add transmit completion handler")

Signed-off-by: Rakesh Kudurumalla <rkudurumalla at marvell.com>
---
 drivers/net/cnxk/cn9k_tx.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/cnxk/cn9k_tx.h b/drivers/net/cnxk/cn9k_tx.h
index 018fae2eb7..636eb1f765 100644
--- a/drivers/net/cnxk/cn9k_tx.h
+++ b/drivers/net/cnxk/cn9k_tx.h
@@ -117,6 +117,7 @@ cn9k_nix_prefree_seg(struct rte_mbuf *m, struct rte_mbuf **extm, struct cn9k_eth
 			send_hdr->w1.sqe_id = sqe_id &
 				txq->tx_compl.nb_desc_mask;
 			txq->tx_compl.ptr[send_hdr->w1.sqe_id] = m;
+			m->next = NULL;
 		}
 		return 1;
 	} else {
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2024-07-12 18:40:17.419229329 +0800
+++ 0072-net-cnxk-fix-extbuf-handling-for-multisegment-packet.patch	2024-07-12 18:40:14.186594217 +0800
@@ -1 +1 @@
-From e6aa5408155471f7a6c8bd5ee9bfb7466a26d165 Mon Sep 17 00:00:00 2001
+From f20821ca949187f1b17468bfe07b08b1ef9f8eab Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit e6aa5408155471f7a6c8bd5ee9bfb7466a26d165 ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org


More information about the stable mailing list