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 C51F841EB5; Thu, 16 Mar 2023 22:29:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B74642DB7; Thu, 16 Mar 2023 22:29:39 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 028CB40DF6 for ; Thu, 16 Mar 2023 22:29:37 +0100 (CET) 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 32GG041P005830 for ; Thu, 16 Mar 2023 14:29:37 -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-type; s=pfpt0220; bh=K5kcC4zoy4c2FSi5pWVFT6KQ4zUzeRo2CzZO+k1hM3I=; b=im6tcv6zh9XciZEucHIQa+jbOCMPQMChPFUocws1jPEej9tD2hGWy4tEVxpKnYPQMzgo 2EZ8dE4TOIXD6M95gBa0OsH1Z4b7uT1rpV6wsldWx/i5mHDq9d276qdL/x0kAzrBYWS5 9vHXWv6fc3mbfZAVfLyyjWGgm1I8CI0iEDc6wb+t+EYXyGWDR778yRx08NYKdFtgcKq9 nk6vBwWvoweFX1Cv8sgoeiAFW5aJfwIVDPNNzF3wLjuBwAlor4i8rGStOTCtshVUQUjR VLC+S/U4BNFktmWXrCeXYC2D4bx4JqpbxxHP3PbjmNemp+uB/4fTYoPZMsgUo+jsLncO Eg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3pbxq2ucrj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 16 Mar 2023 14:29:37 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 16 Mar 2023 14:29:35 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Thu, 16 Mar 2023 14:29:35 -0700 Received: from ml-host-33.caveonetworks.com (unknown [10.110.143.233]) by maili.marvell.com (Postfix) with ESMTP id 0F09F3F7063; Thu, 16 Mar 2023 14:29:35 -0700 (PDT) From: Srikanth Yalavarthi To: CC: , , , , , Subject: [PATCH v3 0/8] Fixes to ml/cnxk driver Date: Thu, 16 Mar 2023 14:28:56 -0700 Message-ID: <20230316212904.9318-1-syalavarthi@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230315135427.11489-1-syalavarthi@marvell.com> References: <20230315135427.11489-1-syalavarthi@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: h8pNtWPJwEmJbIsdqesM6RN2Y6xGw0y- X-Proofpoint-ORIG-GUID: h8pNtWPJwEmJbIsdqesM6RN2Y6xGw0y- 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-03-16_14,2023-03-16_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 This is a series of fixes for ml/cnxk diver. Changes include fixes for coverity scan issues, klocwork issues and additional fixes. v3: * split fixes into multiple patches * add code improvement changes v2: * additional null pointer checks * xstats memory leak fix v1: * initial consolidated patch Srikanth Yalavarthi (8): ml/cnxk: fix evaluation order violation issues ml/cnxk: fix potential division by zero ml/cnxk: add pointer check after memory allocation ml/cnxk: remove logically dead code ml/cnxk: fix potential memory leak in xstats ml/cnxk: check for null pointer before dereference ml/cnxk: avoid variable name reuse in a function ml/cnxk: reduce levels of nested variables access drivers/ml/cnxk/cn10k_ml_dev.c | 4 +-- drivers/ml/cnxk/cn10k_ml_model.c | 48 +++++++++++++------------- drivers/ml/cnxk/cn10k_ml_ocm.c | 59 +++++++++++++------------------- drivers/ml/cnxk/cn10k_ml_ops.c | 17 +++++++-- 4 files changed, 65 insertions(+), 63 deletions(-) -- 2.17.1