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 E852CA0353; Fri, 21 Jan 2022 13:05:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8966A42765; Fri, 21 Jan 2022 13:05:08 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 5C3EB4277B for ; Fri, 21 Jan 2022 13:05:07 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20LA2lWo029271; Fri, 21 Jan 2022 04:05:06 -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-type; s=pfpt0220; bh=nWjdN9BrkBpByL1ZtjPTb6LwOjVGKIn1sIPzwrhwu4Q=; b=jh7YWpeyeF9WfXfFuy55XWWVapLCzOVG7VG3BdZlOorRsORKtJ5/rBbIYw2x12JAP8lR E4HNf/XU1F/Nm8MrzrhJCkTqcKF5+YbuVla/APnDV8z6OmMBvVC+2Km9Yq/qQ85UfTFN 8FK//X+y1w7lFKxWl0RAfNUS0e7Gq4EvY4DWjiRDYMY5k5s8sfK10CnaAa2+59uqb0hi 27XovawDgkIyIBktErIKJW0L5b090dweNzHQfuvijKp0kuzeI+VJkGuY946mAuEQc2fQ jYxd5V5QbjpsVRHzW4M1bcoyFBltcxK+s2t6j3Z6Y4+Fa9qxs6hemHQ83HNaHuFcVCNH LQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3dqj05hu33-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 21 Jan 2022 04:05:06 -0800 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.18; Fri, 21 Jan 2022 04:05:04 -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.2 via Frontend Transport; Fri, 21 Jan 2022 04:05:04 -0800 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 1579E3F709D; Fri, 21 Jan 2022 04:05:01 -0800 (PST) From: Nithin Dabilpuram To: , Nithin Dabilpuram , "Kiran Kumar K" , Sunil Kumar Kori , Satha Rao CC: , Subject: [PATCH v2 09/10] common/cnxk: set UDP ports for IPsec UDP encapsulation Date: Fri, 21 Jan 2022 17:34:23 +0530 Message-ID: <20220121120424.28166-9-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20220121120424.28166-1-ndabilpuram@marvell.com> References: <20211209091342.27017-1-ndabilpuram@marvell.com> <20220121120424.28166-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: WdkeCZ96n5Mque0Ad5AcnhjdpsmzeORH X-Proofpoint-ORIG-GUID: WdkeCZ96n5Mque0Ad5AcnhjdpsmzeORH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-21_06,2022-01-21_01,2021-12-02_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 Set UDP ports for IPsec UDP encapsulation feature in outbound inline. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/cnxk_security.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/cnxk/cnxk_security.c b/drivers/common/cnxk/cnxk_security.c index 30562b4..8b4dd1c 100644 --- a/drivers/common/cnxk/cnxk_security.c +++ b/drivers/common/cnxk/cnxk_security.c @@ -710,6 +710,12 @@ cnxk_onf_ipsec_outb_sa_fill(struct roc_onf_ipsec_outb_sa *sa, return -EINVAL; } + /* Update udp encap ports */ + if (ipsec_xfrm->options.udp_encap == 1) { + sa->udp_src = 4500; + sa->udp_dst = 4500; + } + skip_tunnel_info: rte_wmb(); -- 2.8.4