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 0689642AF1; Thu, 18 May 2023 17:49:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EDA8E42D3E; Thu, 18 May 2023 17:49:40 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 5B61D42BAC; Thu, 18 May 2023 17:49:39 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34IDHoJj004789; Thu, 18 May 2023 08:49:38 -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=pvGsi6nhCclOpWx+uZdTAiVDZpXGEdJ7KWRUJ6aq9hQ=; b=bSlDXenjeWtNmO0TD56UKAyV4hGeSnCLvkhmiTKIBoM9etVcgzVxXhmqcTkUcBjGazr8 p8aW/vGidg26A6dP/26AfFxo9YdK7PXqwAskEhcHw8jJHJWw0ElNwd+6kUm7J+H2Kv4V /acpoEqMBeLPCgmg+inW01gPsG8xM7O//GsArdhkIrqwRt4upD0fOcJ3+Ym3XNw0yQP/ R63Sor8M5nZrJI7ToC0gX3IwYqPOhS1mKzmfMJiuhD89aHGHnVyInRE6tJsqLBDZwpCX AeDkfjpuZbiiHcxzYSlOkVV8eragqlQZ9a8lYfBV3Ei3Vmdm+An1ANof8ZuuKSYFG3Qa xg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3qmyexcpvt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 18 May 2023 08:49:38 -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; Thu, 18 May 2023 08:49:36 -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; Thu, 18 May 2023 08:49:36 -0700 Received: from localhost.localdomain (unknown [10.28.36.158]) by maili.marvell.com (Postfix) with ESMTP id 1818A3F705E; Thu, 18 May 2023 08:49:33 -0700 (PDT) From: Rahul Bhansali To: , Pavan Nikhilesh , "Shijith Thotton" , Volodymyr Fialko CC: , Rahul Bhansali , Subject: [PATCH v2 3/5] event/cnxk: fix Tx adapter data pointer Date: Thu, 18 May 2023 21:19:00 +0530 Message-ID: <20230518154902.2254743-3-rbhansali@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230518154902.2254743-1-rbhansali@marvell.com> References: <20230425104010.339177-1-rbhansali@marvell.com> <20230518154902.2254743-1-rbhansali@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 0p99VqAYbbdqdJEyHqNPW8sA1C4kjlWs X-Proofpoint-ORIG-GUID: 0p99VqAYbbdqdJEyHqNPW8sA1C4kjlWs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-18_12,2023-05-17_02,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: 6a24c7c4bcd1 ("event/cnxk: add Tx adapter freeing") Cc: stable@dpdk.org Signed-off-by: Rahul Bhansali --- Changes in v2: update in commit message for fixes and cc tag 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