From patchwork Fri Feb 3 08:48:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Prakash Shukla X-Patchwork-Id: 123009 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EFDCF41BB9; Fri, 3 Feb 2023 09:49:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DAAAC4021E; Fri, 3 Feb 2023 09:49:00 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 1CF6A4014F for ; Fri, 3 Feb 2023 09:48:59 +0100 (CET) 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 31389OvI018932 for ; Fri, 3 Feb 2023 00:48:58 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=IhiIW1HYBliEEw63p4CTWyErETj7Z5m4Msax/RpHgKo=; b=Q3qijVvPUSnQPtzvoxdwol0Hxg0zc69Tx9CysnL8EWmSmbyxNaFHrGlwWj/ZOcZXozHQ TOQ20W6xf85uMk7NrVZ13l5s+VVamkk4eWUgmOZ3oHPGPP0yelvRVXxJdazW01eMSLqf JUHX45BqIp66OrBJAMFk6IUOvzMNlNdYaMN4pZSL9Sw0VvI1mldJESxN694Dt6QKptBF XFi+wcRONQ0+aW0nbXn4FEYRLh6yGqJiSbPZGikr8IpLezn+zWkL5fVljGKmFWzMW7Sn oFLgdR9GuHFpQs5raiWKyx7NNCvjQ0qR0ucBB+jqsY+cfKZpWfBar0AAm1yzkcByHwai tw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3nfjrjdqe1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 03 Feb 2023 00:48:58 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Feb 2023 00:48:56 -0800 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; Fri, 3 Feb 2023 00:48:56 -0800 Received: from localhost.localdomain (unknown [10.28.36.157]) by maili.marvell.com (Postfix) with ESMTP id 717865B6933; Fri, 3 Feb 2023 00:48:54 -0800 (PST) From: Amit Prakash Shukla To: Jerin Jacob , Kiran Kumar K , Nithin Dabilpuram CC: , Amit Prakash Shukla Subject: [PATCH] test/graph: initialize graph param variable Date: Fri, 3 Feb 2023 14:18:04 +0530 Message-ID: <20230203084804.2235611-1-amitprakashs@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: kkS-dFprPGiWjYnfvi0Hh6cxnudWTngU X-Proofpoint-GUID: kkS-dFprPGiWjYnfvi0Hh6cxnudWTngU 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-03_04,2023-02-02_01,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 --- 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;