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 6AEDAA04FD; Tue, 25 Oct 2022 19:30:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1070641133; Tue, 25 Oct 2022 19:30:06 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 8B2EE410D2 for ; Tue, 25 Oct 2022 19:30:03 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29PFTotr006320 for ; Tue, 25 Oct 2022 10:30:02 -0700 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=uGajiM+PDMQeHV4GYpPcEFloKj+N3d7OPrtOxcqjx/Y=; b=cfPc5bvNUA3bNf9x7hMhqlFjQ+yU+Ykcsikcng9fkjrKiJS1gIyOHF8U3ce8Pi/CWT+p 9uW1o/RyCYvm3zwkB2QGTI3sEt1tHlsoqHsfjIiRl580X+Dnj2p2S4gsCBjpI3SEqc2b 9qkUtC014PCGoGBL/6beVjkEPFmSRqtZElBuiFxAFts+jh8aGOQJ0me9IEqVkVT7XoXX mRYVEE7CQwMtYpDoqYkjVmoac9XhrCYSzxIZD78D88D4Mv2fPhKDOwOIns9afpSQurkO hKMgY2T7fA7ZYwX1o9Qt4HR1v2BsmFopqVRLZe3BAYP2W9bAfXiGaQFEePljiUyWDOYT zg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3kcg1mv8v1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 25 Oct 2022 10:30:02 -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.2; Tue, 25 Oct 2022 10:30:00 -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.18 via Frontend Transport; Tue, 25 Oct 2022 10:30:00 -0700 Received: from BG-LT92004.corp.innovium.com (unknown [10.193.70.183]) by maili.marvell.com (Postfix) with ESMTP id 9BCB53F70C9; Tue, 25 Oct 2022 10:29:58 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal CC: Vidya Sagar Velumuri , Tejasree Kondoj , Subject: [PATCH] common/cnxk: fix build failure with rhel Date: Tue, 25 Oct 2022 22:59:58 +0530 Message-ID: <20221025172958.378-1-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: cz1DCcsTp5WOR0X5sOFtl6nN76EvWsiu X-Proofpoint-GUID: cz1DCcsTp5WOR0X5sOFtl6nN76EvWsiu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-25_11,2022-10-25_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 Fix compiler warning of uninitialized address. Fixes: a7033a2fb2bf ("common/cnxk: support custom UDP port values") Signed-off-by: Anoob Joseph --- drivers/common/cnxk/cnxk_security.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/common/cnxk/cnxk_security.c b/drivers/common/cnxk/cnxk_security.c index 68ed0d08b4..85105472a1 100644 --- a/drivers/common/cnxk/cnxk_security.c +++ b/drivers/common/cnxk/cnxk_security.c @@ -1269,10 +1269,12 @@ cnxk_on_ipsec_outb_sa_create(struct rte_security_ipsec_xform *ipsec, } ip4 = (struct rte_ipv4_hdr *)&template->ip4.ipv4_hdr; + + sport = 4500; + dport = 4500; + /* If custom port values are provided, Overwrite default port values. */ if (ipsec->options.udp_encap) { - sport = 4500; - dport = 4500; if (ipsec->udp.sport) sport = ipsec->udp.sport; -- 2.25.1