From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 233BF440F0; Tue, 28 May 2024 09:05:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5257240691; Tue, 28 May 2024 09:05:38 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id CE2924068E; Tue, 28 May 2024 09:05:35 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44RJnguZ004895; Tue, 28 May 2024 00:05:35 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=G n3SbWVMcnQasd99Myk9Z705OSN8rsCfdNRvIGpDtzY=; b=VyLxKYYE/6CpzzMvX GtBKs7J7L0nDLk+UiQgwmV4pJ2PRgRv19FhmGZd8ZAn5gswcDP7lUBpo63oXIEmt cBSPMYruLbYtH77N6U8peb4RvK9gHtjCtGxJveciw2NeqXVqrzK51LjW9mRO+DYI hHNBYYF1LTpx0e1iglBX3lXt9m2y1XPxg8f/DrWGf5ZNZLMiklh1CjTvSUK1IAJJ qUfQzxsEPZ58G4f00DrstFI9onl60AEmyg1S3Lhumwc6P5QBMlObccFKhFSIDDyf j2oN5aA8QvpQNmhb834nN7GcI7wsWSpKajHRjGEoJB270LAVw7AnHjZe0+iUzfgo wu7uQ== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ycqpykqyt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 00:05:35 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 28 May 2024 00:05:34 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Tue, 28 May 2024 00:05:34 -0700 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 5CC803F7099; Tue, 28 May 2024 00:05:31 -0700 (PDT) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra CC: , , Rakesh Kudurumalla , Subject: [PATCH v2 03/10] net/cnxk: fix extbuf handling for multisegment packet Date: Tue, 28 May 2024 12:35:15 +0530 Message-ID: <20240528070522.3857626-3-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240528070522.3857626-1-ndabilpuram@marvell.com> References: <20240517074448.3146611-1-ndabilpuram@marvell.com> <20240528070522.3857626-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 0O6lVtsOppw74dTJCZBpPg3MPZqHP-m1 X-Proofpoint-ORIG-GUID: 0O6lVtsOppw74dTJCZBpPg3MPZqHP-m1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-28_04,2024-05-27_01,2024-05-17_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Rakesh Kudurumalla 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") Cc: stable@dpdk.org Signed-off-by: Rakesh Kudurumalla --- 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 6fc9e4d758..b56881c561 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.25.1