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 9DD43A0C54; Fri, 3 Sep 2021 14:51:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7FFBD40E64; Fri, 3 Sep 2021 14:51:28 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id BEFE840E3C for ; Fri, 3 Sep 2021 14:51:26 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10095"; a="206533593" X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="206533593" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 05:51:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="429645963" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga003.jf.intel.com with ESMTP; 03 Sep 2021 05:51:24 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 3 Sep 2021 05:51:24 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Fri, 3 Sep 2021 05:51:24 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.47) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Fri, 3 Sep 2021 05:51:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ReHJ6wOrER98BffLY2st7htaaUb7MagcvJ2+2ieQLQ/uP7LZb62ejiMjned+L4k8Zrfu+3vKd/xzno2pC1+GmUggcaz+dUxc/SlgvUPMY892uWc1uvfQX1ZF/fodruww9wqGZZJhgAhdhMjdLbkwUkNW9s3PtQ8P0Yw7qMEdqtpwhxG9UVZRs0nonXq5AwFL9vUbAIv/Fd0M0euZAL5c/A64K7ClA9tMGCVNSdZ6lln0OTTzb8WB1On5n7PH9eiULFLSWzikl7N9jn43n0UtOy6yh8Y/IOJLCWr4dxee7NFJngymGb2KXJSTTeOqmYwUh5VprtBFzAhdV2gtG21XyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BNAtkwlpVbTSmHSg8b3FO8dsnWtreuvil0qxkhBlsII=; b=CQo+a2JD5F5AGC6Wnd7HNk1A+nN50jORzu02HV9AD7d4Kx2/0Qg/vY3R02zCXZ4vZPpdkU4j8WEkm/PEU/u1UHvZgoTtz4TKnqVIBfo4L3COO9vOj4N1+CxJCyRuAqyLamimbuC48+RhhgrsBvoP8QwzwpEikY8QSHmNPA924AqtiSF3QLQH4qIJofCl+DTE6HeUd6G+ACa4D3T37nvNFk+d2rKHpYFkwJOe6iumy+vdDZF7bw5Rl96HZcMfXkmwqGYKcBkZYkb+Veb3wdteo5CdgPOkMc7C5VDmketzJQJFlkv7lMlj4XuENeNL4PD/+Q18gTAfssPJQSMrbbDbMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BNAtkwlpVbTSmHSg8b3FO8dsnWtreuvil0qxkhBlsII=; b=CegIddwQ14VOo8twZAGtuccE7z6giJLFhwkDmTs12Im7VKevujav7/KL3Lvrzl4TSCNbsD+1cqSWuPP8NCZMBWQohLntQ6r7xSLeVwtrK8JKw1mhptBNKiwGRuFwCNTEFzSPy1B/nxm9ykTGJVwRu9/88e7FiD5LIpkw/jol5Ek= Received: from BL0PR11MB3043.namprd11.prod.outlook.com (2603:10b6:208:33::19) by BL0PR11MB2946.namprd11.prod.outlook.com (2603:10b6:208:78::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19; Fri, 3 Sep 2021 12:51:21 +0000 Received: from BL0PR11MB3043.namprd11.prod.outlook.com ([fe80::3ca9:5da5:8b6e:ad0e]) by BL0PR11MB3043.namprd11.prod.outlook.com ([fe80::3ca9:5da5:8b6e:ad0e%5]) with mapi id 15.20.4478.020; Fri, 3 Sep 2021 12:51:21 +0000 From: "Zhang, Roy Fan" To: "Nicolau, Radu" , Akhil Goyal , "Doherty, Declan" CC: "dev@dpdk.org" , "mdr@ashroe.eu" , "Ananyev, Konstantin" , "Medvedkin, Vladimir" , "Richardson, Bruce" , "hemant.agrawal@nxp.com" , "anoobj@marvell.com" , "Sinha, Abhijit" , "Buckley, Daniel M" , "marchana@marvell.com" , "ktejasree@marvell.com" , "matan@nvidia.com" Thread-Topic: [PATCH v4 02/10] security: add UDP params for IPsec NAT-T Thread-Index: AQHXoLdtmBu7XeF1eEy046zao/MgBKuSQ03A Date: Fri, 3 Sep 2021 12:51:21 +0000 Message-ID: References: <20210713133542.3550525-1-radu.nicolau@intel.com> <20210903112626.304692-1-radu.nicolau@intel.com> <20210903112626.304692-3-radu.nicolau@intel.com> In-Reply-To: <20210903112626.304692-3-radu.nicolau@intel.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.0.76 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 35569472-dc61-4197-d5fd-08d96ed9879e x-ms-traffictypediagnostic: BL0PR11MB2946: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Aw8w+x7mGVygNayICWoP8GdJ7Xpkm2LWopnqaY426BPdGMdgO/R/m/cZ2koX8mzOTT+KRVHgZm9Q2eGNZClTZRZ3p2iULcC1l6RdavbcXYMBiB1soZ31sZiz0hNGjimdZ60sKqxkHhjb/MipBugTsuEm2h9FsXCajNHNcHVcKMr/gw5dXTpBiik7OaTElBSNsIOZj0LNV7GUDzNYoAcY4RYLYSyOQJjWMO6IPlXBKgs48Gz0h70O/7qX2JbNR6frhO1T+YtSpLFFzAzrqbzTP0egovGERUtd6M48bclX9tNF4aJkR1kitEoR2UUEt0LKiRxH/XLP5suf1Ntj6m0Rw1R7kk+wYDWGYH4+BhTzXwFjhUObflqEUoBUWeU515+epS3dP1nlYXhPXAG70w27eH4cmynTkDx1AV8EL0nFLOzNmYtig3DcL+ZHHrH0w2pozkglFkq4zjC2NLwpxDoQGs4OvghQkuKrGkgQhxJx0bm36JAKZz85Bi+r7X6blr5j7AVnx8u8pXm+whCDHa6OPlASSIcRUmwMT5rv0Vi+Bx70FTfFx+WUH40wtwGwmjP4g27SxsRca+TCukYU7HuY8xnNl2NWqKz/xZ/+dmd8YCSNyF2ASM/tf9m3+o7hHWPiuCtjP424kx0votJbWg77kkNnZlVwLQbLE13iGIz6RecLMa+gZDaWpnMSHHi2O0jsXYWWVcdLtBV7HsteVfhKwQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR11MB3043.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(39860400002)(376002)(396003)(346002)(53546011)(33656002)(38070700005)(122000001)(76116006)(6506007)(9686003)(66476007)(66946007)(66446008)(2906002)(15650500001)(64756008)(7696005)(66556008)(38100700002)(83380400001)(71200400001)(8676002)(6636002)(8936002)(4326008)(478600001)(26005)(86362001)(52536014)(316002)(54906003)(110136005)(55016002)(5660300002)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?tRvWT+rnsrwduuxd38dizBK7Jt688XFPh6zPTEfJ0wGQNON2R7f6OPpa?= =?Windows-1252?Q?vMYPLoR0THqwHVTspQUlQtHaiOKHJsscdIn3q25zK9yR0ZQGn8Fn94uP?= =?Windows-1252?Q?p+R7Y4DxtBi6LJ4V1Zltcu/FYFRJkcyqBcY4K9SinlAMLqW+6QkZ7S7v?= =?Windows-1252?Q?7co/NjICCiXjL/vPcJqMSII9XZVb1SxPEWkGnNae/raRhwwDlJxb5wIj?= =?Windows-1252?Q?zEoe9Dh+m7XlwPm8Z345MqYPsD1wh6r8cMDVbZnMglaObHQe2TqTA5lB?= =?Windows-1252?Q?H0B/yJPYm0F/8tvuLLHUjfZQ9+/OGYexyUFdJDA0fT0MU0PZ5MZba0Rg?= =?Windows-1252?Q?lMkArz8heRm/a5HZbejhNiRoHH62Vnl75zAPCM6lOQC1T3gPexixjWgv?= =?Windows-1252?Q?ici+cOFPL4qB4Q4cbPhb3PVtLiFucMDyQzs5/iEH1dYGLASGYN8qDA35?= =?Windows-1252?Q?ZXLi2l6Kb4wBZTKRXPGfpWY9jcKz3vaA749UZ+j6mFBd4l4Z7nVxYyyP?= =?Windows-1252?Q?hbEIyPeU9HlS+DnjIdXrmle8btAV1umEyHNYpOyED3hVmfAr0skgP/7r?= =?Windows-1252?Q?sItXc33YTQMLLQIfTeOLfNQKzza9XKkWOOF+ED6qbJMXPbqh14Fs7Osk?= =?Windows-1252?Q?I6ywzxRe9z9F2Otf+9AJGe/Wg4pJSr6OEKxb/b6BBY11LcTusyVeUFmD?= =?Windows-1252?Q?5Al3hJTe/8+g6WQR7mH4U/1evg7jTL12CzJK701YIV1bTdF11ItaeYw4?= =?Windows-1252?Q?3NUZSK/tOZu1RQNASW9TXEciP7lJrgAjOGxEnizYrTano1hTRArrNYbm?= =?Windows-1252?Q?EXx9OnjEQ2/7HUzmBkZubwT/akUtHXLTMr/dg/W+SxZLsZ708N/oqBuh?= =?Windows-1252?Q?safqcX4xp8ZvrTG8WHARwXQ7JVE/oR7/wfamHcRJQaKGnmGbtHfq1Av5?= =?Windows-1252?Q?jBQx35gR7Mmq9manVw/djizxIh9bt7uEHBGsWQN2ihhL3/lZv2vj7+mh?= =?Windows-1252?Q?IqQcRoBlMZqfOaCR+rxRwWZvaW0NNwCn2nRbqeSqYxAYs+w24DBnTTgK?= =?Windows-1252?Q?9YtNRvX2yytFH6+lWmMohc7damZnTgUoZoYN6cefh7K1e15KroDmJyC8?= =?Windows-1252?Q?vJmeypH9z1ape4hFZ1ylagojE0PSJHDzQcrEZYfw/0zMZxU/ZWwqeDW0?= =?Windows-1252?Q?c+Y4BSLpYwwV7UzjFGTwa9snHiMlYGcrgWeQL9wO+YZYs4h4mBphYfi0?= =?Windows-1252?Q?v5Ht029S1Y0BV6IfQK3s6OGW3F9IB44S362ZepReiLcoMOY73nX0NMrs?= =?Windows-1252?Q?6s4clm+CqlT2i0Mgauq+M59A5X7iguZFaKu0Wns+q7aO+/9Tj/I+NoPt?= =?Windows-1252?Q?HYgvqGYmXRRqrPEB/JGhqMYSOzbV1UguN9/btzLPY+4jQO+ovBiOdaah?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR11MB3043.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35569472-dc61-4197-d5fd-08d96ed9879e X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Sep 2021 12:51:21.0738 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Chgzc4gSOENixJgXu/ci4YUtQBHkjFwxf54Pc+maxQjdUYf15EnlOoBvK9cyOogAnz/DF0TwRmCaLNYGwgteRw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR11MB2946 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 02/10] security: add UDP params for IPsec NAT-T 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 Sender: "dev" > -----Original Message----- > From: Nicolau, Radu > Sent: Friday, September 3, 2021 12:26 PM > To: Akhil Goyal ; Doherty, Declan > > Cc: dev@dpdk.org; mdr@ashroe.eu; Ananyev, Konstantin > ; Medvedkin, Vladimir > ; Richardson, Bruce > ; Zhang, Roy Fan ; > hemant.agrawal@nxp.com; anoobj@marvell.com; Sinha, Abhijit > ; Buckley, Daniel M = ; > marchana@marvell.com; ktejasree@marvell.com; matan@nvidia.com; > Nicolau, Radu > Subject: [PATCH v4 02/10] security: add UDP params for IPsec NAT-T >=20 > Add support for specifying UDP port params for UDP encapsulation option. >=20 > Signed-off-by: Declan Doherty > Signed-off-by: Radu Nicolau > Signed-off-by: Abhijit Sinha > Signed-off-by: Daniel Martin Buckley > --- > lib/security/rte_security.h | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h > index 45896a77d0..03572b10ab 100644 > --- a/lib/security/rte_security.h > +++ b/lib/security/rte_security.h > @@ -112,6 +112,12 @@ struct rte_security_ipsec_tunnel_param { > }; > }; >=20 > +struct rte_security_ipsec_udp_param { > + > + uint16_t sport; > + uint16_t dport; > +}; > + > /** > * IPsec Security Association option flags > */ > @@ -224,6 +230,8 @@ struct rte_security_ipsec_xform { > /**< IPsec SA Mode - transport/tunnel */ > struct rte_security_ipsec_tunnel_param tunnel; > /**< Tunnel parameters, NULL for transport mode */ > + struct rte_security_ipsec_udp_param udp; > + /**< UDP parameters, ignored when udp_encap option not > specified */ > uint64_t esn_soft_limit; > /**< ESN for which the overflow event need to be raised */ > uint32_t replay_win_sz; > -- > 2.25.1 Acked-by: Fan Zhang