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 BE374A0C54; Fri, 3 Sep 2021 14:50:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A729940E64; Fri, 3 Sep 2021 14:50:32 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id DC6C440E3C for ; Fri, 3 Sep 2021 14:50:29 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10095"; a="283118827" X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="283118827" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 05:50:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="543523356" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga002.fm.intel.com with ESMTP; 03 Sep 2021 05:50:20 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx602.amr.corp.intel.com (10.18.126.82) 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:50:19 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx604.amr.corp.intel.com (10.18.126.84) 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:50:19 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.108) by edgegateway.intel.com (192.55.55.71) 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:50:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P5nnQriJTd91ZbvwpcG784OwBlNGO75HEigiP0O76P4HRkm+Lccoz5EklqTrjMXJCFUCMVaeVKtciN/k4UTDSs3KqKfwfoni48YIDRkQrrjgnvYghe/JLhTkMBMEfxH9cUCbZs1kckNMRgZF6K5ORBAWQ0OxyihOWbOsxWl7Oo9fDuduSyPINnWyz6T96oidxmAPXF53vTRU0KKeux9j1peKKsNWoMP/PcCcdOipgNjFTlg8Y3KA+3uwlvCAFsB/zZEAPJjA+uPYTQZymPi9NUbhjg9ioW7nqeUTpNpwS1GXo/eEUJVhanBI1LnFxkQbiU0MKXDW3u0Ate9TCfdSjA== 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=2XLPJ09bpgUwGoEEbStXITzHXg7H7rekzpeRYGpF9i0=; b=mK7w0GT6cADCmBaimYiVVVcG4kbDgnRu3d9X8e1h63kvbn7oN8LTU8qcTTFzy8rlS4iCNOzJmTTGDSYUdsUvbKW1l6RbGQRqCKnZYW9P3fYxr/BUaDrLDAS75apmCmZfDfY3a80VRupn9MN7T8QU3DN/1WKu60V96PmkwlT0mFQ+pMlhxWJ6KfVjrs1aGyQWMtanEL8SHqdV2G22YFhibwsxoYzJ8A7waSRye8NBtw+mStXyY6ll/2Po7QNjFt2KBX++HtZPNMX5uZBOTExgSDLN9XtjUIOBUVG653kRIgZmI+/HunXfMJkzhXLahxYSEUAACupQxozrgb8ozTHoQg== 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=2XLPJ09bpgUwGoEEbStXITzHXg7H7rekzpeRYGpF9i0=; b=vB+rqeNQhXJG33RBpc7zOXpTl4UNhHpoBCYO+2Ctg4Ftb5ssz840hdRFVYVIDL3KRVA06g0z4lRTjfdNjlPsjoMQP5+XLLN9MqXcVRCNFohn3edRYMFhzbiYoY4WDsFrwqsbByAGWg6VCwhNKYPxTbbh4SsvMqpXjftU8T4/rPA= Received: from BL0PR11MB3043.namprd11.prod.outlook.com (2603:10b6:208:33::19) by BL0PR11MB2945.namprd11.prod.outlook.com (2603:10b6:208:32::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.22; Fri, 3 Sep 2021 12:50:15 +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:50:15 +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 03/10] security: add ESN field to ipsec_xform Thread-Index: AQHXoLdrKczFV2FQt02qNKatQXxH8quSQv3A Date: Fri, 3 Sep 2021 12:50:15 +0000 Message-ID: References: <20210713133542.3550525-1-radu.nicolau@intel.com> <20210903112626.304692-1-radu.nicolau@intel.com> <20210903112626.304692-4-radu.nicolau@intel.com> In-Reply-To: <20210903112626.304692-4-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: 0ed02343-893a-4faf-867e-08d96ed96091 x-ms-traffictypediagnostic: BL0PR11MB2945: 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:418; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MOxeIW8oGHr0bWEMup0n+SosqsTXHpU61tQfLjxZRM0edaQ/1B9Y25kzxevVJaU9TSTmeSUAMbngRUPPxAd7AVw8Vt85xnzjdZhIviAwEkMDOVMjuEzSWneY46ETBbMZKONTckPh07+kEs0k6U9WRZ/3zbvU7wKEf9zz+G6PGcPe4VZgBFfQelq0DpCAPca10w9RpvFwAAHDWba8UcgujllxzR4SZE+8C3LVEJTnnmHnt+cw2oLVfc1ytjrsfmK4oYcFsK4I3yc6R0ST8HHRlCIjMtUWbiuf8SFGZFaDiq6OoxzRKYJfUDpK7rn9nWcC5lXFx8zRJMRmrSVFRm3Eeu6Wx+aoZF+tYjutOolmu1DEwZf5LvkV5FcTBlar0g/shhbCZJHAeJ+w0TTcmAb8yM1n6Nw0LpGcxojUFoE5W/qijAkkc6Ok/2pEhV8Nq9NnKgyM955kN7pYtjaBDhJMTscb0oNQumdwEakv/c4PPzbCPJTZTxSYzQJxn2tPvPvym4Ma5n+3z/0nCzB7Lv3aw3BDP/h6So8QA32KUHTwqFHFKQdJS+GY+dRRJNqzqpQwb+IVz9Fsn74kQLBCzvFYkTIGpes69vtSgexiwZV5lEK56wNDSKqbkDHIMVCWYDnVy4rxyWN1ZgsNM0sh9FWOSNMWtRs0UPK5pQ37LCJdkeo4YueGzIbyIaaAfvGwqHSD3AsWGXluf9RtG5YE+2DE6Q== 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)(346002)(376002)(396003)(136003)(39860400002)(366004)(6636002)(4326008)(186003)(7696005)(76116006)(38100700002)(66476007)(66946007)(55016002)(8676002)(5660300002)(54906003)(52536014)(122000001)(110136005)(64756008)(66556008)(316002)(71200400001)(9686003)(66446008)(86362001)(33656002)(15650500001)(38070700005)(2906002)(83380400001)(53546011)(478600001)(8936002)(26005)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?0E1BMGsSbpqfcz32j0IZvzpmCocoePZDRIYX2Q1xQFpifr+ONjuGP2kT?= =?Windows-1252?Q?uL/Z9bRDd1ucVrATiA63iqyHL5birxiU6DPVxKDK1nsYq70j19Xg6K2l?= =?Windows-1252?Q?7fL1ulpv7OdFcs+j5VCX8RgB6cYxGQEtnAsvNU/5g10Yya3M/CI4SSsk?= =?Windows-1252?Q?V3TGo4IrfNCwue/p8BLkPocZ81UCMXjuXH59TtUjfrY76K7oXcj3IjFq?= =?Windows-1252?Q?UKYxiV1pnQRgvvHnBwuiAMlpZYFD6+LifIM2R+ivlh7QvFfyNo8DrErX?= =?Windows-1252?Q?4PmcXJ5GUZFNJjms0VLeb4xmbm5Qw+PelT3Zdfk+NTe1Hlaq9tCO6ivZ?= =?Windows-1252?Q?f4zRDNhJELkYl1/MHE/OGS2VUrR7lohQ7FyZWE3hpqdCQLdbougaR1f6?= =?Windows-1252?Q?H1YqMolob7kULjCmQ7adN0AjrJIaHp7Pw/GvBILvV8XotHu9eO5qaAIm?= =?Windows-1252?Q?/ec5y3Ca0Xo2iNJdyHn26Cd9nj/zeNcJ2p7tLwCvLQxBZHdVbaQpOn4b?= =?Windows-1252?Q?PZXg9pHFe0cliz3r8SJDJMrTUihshn3LZR/5yQQhDb9rHYxyLVAndnn8?= =?Windows-1252?Q?8mG/qcEpp/Yw0nJvtvdh2jkK3Z7mRTb3TCFzYdwLb1kNREiBvm8IQtC6?= =?Windows-1252?Q?QmvqW0cgAQrGQelJvwXzNrmVQbgAtZZndGtRKB7kb7B3dsW2HPmH2ICZ?= =?Windows-1252?Q?9Z24bhOayPqPjXMdna4vPpO1TLBegDN0qcRP+9hBA7eCnt6/dpqYDQ/1?= =?Windows-1252?Q?nqZIgnnzIRhMddPQiPC8qQuzefSIb+5MGbzTvMwz8kt98xcwIByDKOcY?= =?Windows-1252?Q?w4gMunpdL2UDeZImkThdIQA7MQsx8hoDOYbeF7WxKk86TcvA+NeeWMuw?= =?Windows-1252?Q?IFSAKmew7yjWSM2dYuOzevCT7HFlpG0mfZGWiMVtcZu1GTr3VU+GUT5L?= =?Windows-1252?Q?pqb0DgqCfoK52MTd6Vvms8LPnZD3uLv83MAsRW83u1ulzq5cI4rLRaLo?= =?Windows-1252?Q?m5n3zhAP5ol7AMuTYXYdUhXl9mSbET3p2dQdn4D+/Cl13j71ngnasANP?= =?Windows-1252?Q?1vz+ebFNbDdc+86E82qwmFQseuI5ilQwkSrfJYXftpSj/7T7SMRW2Jeu?= =?Windows-1252?Q?n7tmFpY/waQbNx7Fj2LRXzWb0WiDFmNTlsLNUYplZoOS6RaL+bwzFQT8?= =?Windows-1252?Q?m3FEwfZgn+hsyZo6ScLb6TFJVHnWk3XM5peV2LV5AiuTFvguSgOuHKjM?= =?Windows-1252?Q?WAYNmieOpdtJst27QgIRGI5PfZ+V/tyratwX/2vVQQYeW1TNSYCiE/Zh?= =?Windows-1252?Q?XAXyqVfnG0TIz2CI5zDtes5nMpFpg5mE4eoAoLN1RXs/z61uJxnrIrb1?= =?Windows-1252?Q?PsKxxjlby4Km5vPSaBvpaExEWIYmIgMwHd7nqAi51rveyRIfbPra1xeu?= 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: 0ed02343-893a-4faf-867e-08d96ed96091 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Sep 2021 12:50:15.6064 (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: Hvi7oTMSdc2Cg+/5GY5PcNpWGoYFtVS7uHmuF8XgIvZ8grahTqYUvyx87tQ4Q7eoaCPWxynuCGLSVyjxDOQqPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR11MB2945 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 03/10] security: add ESN field to ipsec_xform 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 03/10] security: add ESN field to ipsec_xform >=20 > Update ipsec_xform definition to include ESN field. >=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 03572b10ab..702de58b48 100644 > --- a/lib/security/rte_security.h > +++ b/lib/security/rte_security.h > @@ -240,6 +240,14 @@ struct rte_security_ipsec_xform { > */ > uint32_t mss; > /**< IPsec payload Maximum Segment Size */ > + union { > + uint64_t value; > + struct { > + uint32_t low; > + uint32_t hi; > + }; > + } esn; > + /**< Extended Sequence Number */ > }; >=20 > /** > -- > 2.25.1 Acked-by: Fan Zhang