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 B8D9D41C4D; Thu, 9 Feb 2023 10:56:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A1FD142D0D; Thu, 9 Feb 2023 10:56:42 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id CBA36400D5 for ; Thu, 9 Feb 2023 10:56:40 +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 3199IhDw000650; Thu, 9 Feb 2023 01:56:40 -0800 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=2yfBkW2fjkz3NUjGe1ipKhySE3ksywHz/iMbxnfugvc=; b=SrwjQDgmRj4/SfBtBegAyw7CW2HpGXSPqgaeYRT5eqFVd0x2f4oAyogyr4Y0hUESp5Pv DOGY6GsDxt4QxpAtY59JL2AqcC+FgRHB6phr8KxRx5A6GPPTwhRufV09WxHHr2BIguWL P/GT0GCkwda/cMtopTClXzSkZRTrpsvEyup3AS4NUHl/4W2vnheFv3tqGeQq9a/aJfS4 Df6zAVtsgKt/NdJmflAbEUIWyJkH2q6h8pG31ZZ7wv+0aeQ9iMPPPz90CUrUurXk547j fdPys0GXYaxxh/puLK1P+L4RMZR7asbQzL38LBXtcgPPclbHRQEkZmgA5nNtN1YmGT9S Pw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3nkdys0sff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 09 Feb 2023 01:56:39 -0800 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.42; Thu, 9 Feb 2023 01:56:38 -0800 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.42 via Frontend Transport; Thu, 9 Feb 2023 01:56:38 -0800 Received: from localhost.localdomain (unknown [10.28.36.157]) by maili.marvell.com (Postfix) with ESMTP id 3200E5B692A; Thu, 9 Feb 2023 01:56:35 -0800 (PST) From: Amit Prakash Shukla To: Jerin Jacob , Kiran Kumar K , Nithin Dabilpuram CC: , , Amit Prakash Shukla Subject: [PATCH v6 4/4] test/graph: initialize graph param variable Date: Thu, 9 Feb 2023 15:26:14 +0530 Message-ID: <20230209095614.2459659-4-amitprakashs@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230209095614.2459659-1-amitprakashs@marvell.com> References: <20230203081925.2201007-1-amitprakashs@marvell.com> <20230209095614.2459659-1-amitprakashs@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: ri0qQJKN5NVjBF-5oFYtR46e8UAe0Ext X-Proofpoint-GUID: ri0qQJKN5NVjBF-5oFYtR46e8UAe0Ext X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-09_07,2023-02-08_02,2022-06-22_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 Initializing rte_graph_param variable with 0 to avoid any garbage value in structure elements which are not populated as part of this function. Signed-off-by: Amit Prakash Shukla Acked-by: Jerin Jacob --- v2: - Fixed code style issue - Fixed CI compilation issue on github-robot v3: - Code review suggestion from Stephen - Fixed potential memory leak v4: - Code review suggestion from Jerin v5: - Code review suggestion from Jerin v6: - Squashing test graph param initialize fix app/test/test_graph_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_graph_perf.c b/app/test/test_graph_perf.c index 1d065438a6..c5b463f700 100644 --- a/app/test/test_graph_perf.c +++ b/app/test/test_graph_perf.c @@ -324,7 +324,7 @@ graph_init(const char *gname, uint8_t nb_srcs, uint8_t nb_sinks, char nname[RTE_NODE_NAMESIZE / 2]; struct test_node_data *node_data; char *ename[nodes_per_stage]; - struct rte_graph_param gconf; + struct rte_graph_param gconf = {0}; const struct rte_memzone *mz; uint8_t total_percent = 0; rte_node_t *src_nodes; -- 2.25.1