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 1D1E7429EA; Tue, 25 Apr 2023 12:41:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D74A42BC9; Tue, 25 Apr 2023 12:41:37 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 108EA40395 for ; Tue, 25 Apr 2023 12:41:34 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33P9EojC013107 for ; Tue, 25 Apr 2023 03:41:34 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=FGf5XCg76hJv2aYcPG+Ne0JiOkAJWgg66D1/XwLh1rE=; b=WiwwYjd88yqQPJA+ap4ZdIW955oX/NS5aBVUAjYyfo6s6hg4IVj+Fxf0VmBBMyz9opYy Bir3JdHLZcf4FGqgBAMMOlwfrFG79x/1MFSMar45lN8tyny+7iHalMSn9/p1FblFHZlD Z5N6O+VTJGYJ6/zd63MvwR3i2rm2P0WDDvstNXAi0vRMkxNGDAXcUNLkDm2Gi/L7V8Dz OgK+cGaajjvoqVXaL27IlkszNDZ8b3vsdLA2JUuHNi5IOlyvcZ1GksGaJdTidKcUTekv lRXZKOes5Xj0yH7vJ7r60opp/KIS0KLh76qeLcL1qCj0jGpIHqL/G9PRwK81GsiMtykr +g== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3q6c2f89sm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 25 Apr 2023 03:41:33 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 25 Apr 2023 03:41:31 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Tue, 25 Apr 2023 03:41:31 -0700 Received: from localhost.localdomain (unknown [10.28.36.158]) by maili.marvell.com (Postfix) with ESMTP id 3A46D3F7057; Tue, 25 Apr 2023 03:41:30 -0700 (PDT) From: Rahul Bhansali To: , Pavan Nikhilesh , "Shijith Thotton" CC: , Rahul Bhansali Subject: [PATCH 3/5] event/cnxk: fix Tx adapter data pointer Date: Tue, 25 Apr 2023 16:10:08 +0530 Message-ID: <20230425104010.339177-3-rbhansali@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230425104010.339177-1-rbhansali@marvell.com> References: <20230425104010.339177-1-rbhansali@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: OUKvYYbjRfLgBZu8Mhdg29UtVDBlUAvV X-Proofpoint-ORIG-GUID: OUKvYYbjRfLgBZu8Mhdg29UtVDBlUAvV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-25_03,2023-04-25_01,2023-02-09_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 Dpdk test application crashes when event inline IPsec test ran for second time onwards. In case of event device cleanup, Tx adapter data pointer is free but not set back to NULL, which causes incomplete initialization on next run. Fixes: 6a24c7c4bcd ("event/cnxk: add Tx adapter freeing") Signed-off-by: Rahul Bhansali --- drivers/event/cnxk/cnxk_eventdev_adptr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/event/cnxk/cnxk_eventdev_adptr.c b/drivers/event/cnxk/cnxk_eventdev_adptr.c index 6d975362e8..9a02026ea6 100644 --- a/drivers/event/cnxk/cnxk_eventdev_adptr.c +++ b/drivers/event/cnxk/cnxk_eventdev_adptr.c @@ -635,6 +635,7 @@ cnxk_sso_tx_adapter_free(uint8_t id __rte_unused, if (dev->tx_adptr_data_sz && dev->tx_adptr_active_mask == 0) { dev->tx_adptr_data_sz = 0; free(dev->tx_adptr_data); + dev->tx_adptr_data = NULL; } return 0; -- 2.25.1