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 5B4EBA0C43; Thu, 23 Sep 2021 14:47:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B373541260; Thu, 23 Sep 2021 14:47:01 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 8051041257 for ; Thu, 23 Sep 2021 14:47:00 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10115"; a="309390619" X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="309390619" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2021 05:46:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="558343485" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by fmsmga002.fm.intel.com with ESMTP; 23 Sep 2021 05:46:59 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 23 Sep 2021 05:46:58 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 23 Sep 2021 05:46:58 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Thu, 23 Sep 2021 05:46:58 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.40) 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.12; Thu, 23 Sep 2021 05:46:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fp1BT6rpdDEmIpneBYA41b4BscoP1AMGT9h+3TjvktkpYfR4JlklOmQyt/y58AzddTRahVtcV3xBkmUzkTzsRH3jOd7QrVpPV5LvS/Ifkwo6y64he5h08BfM13ni/aVlzCtPe6ycYHGhkF40NUjF2mmwf4Nd0ZrmlIU8oG0Ib5pk+uwNrSdb95EAp8zEyzoTgWvqVvr7wajXzp8Cy+NnK83Oc5Bxt522mT0EaeyaXugO/Wz86NFRy/r0mTj95SJKD9UsUTTALNAc9pETk+Qypc4xPkcSvOl1Qp53dMYZMq4wyuZLcO7/rCeO4N1UDoabk2Ob8zgiC5HgPtV59L13gg== 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=sj0voI/qu/ZsCLlD1rZppHedc5cTDP2aNAw3pXD8ATk=; b=g4bF+01KQWKnsGi1E5F/FVOGyk7A1m5u/mYHKGyN0D6tmW+iGTRsD2bYMdJtYIs0QQU0YcavxPHGiDL3SWIyHpTpt4yu9cLYcWuenX9JP/VIb9aJmMiYTOE/RwmJ9WI2M03YAKgfbnmYzhMVorZ3khSOa415P/fyB/P7o5/WZy97BjFfKCQirhwEVJ1pU/fBV3VoFl/LBkVxWUL7/eRGGucdjK4DIVtj6940RYPo0S5sJv2hbdCMyq/pQsogGAZfyQG+atpwqjsJY4Y94bYaMvETL2MvKwx/loIoXHgQ05ENoBUwa4AanoBi/5HON7pNJiImkMZqX9E6P4kQ4QE6GA== 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=sj0voI/qu/ZsCLlD1rZppHedc5cTDP2aNAw3pXD8ATk=; b=pc6nYZ0GsKOHF39cKZMwFd3INc0BaagZiMYdt47SF1jsR7Wuj8nG9XFcaNJHubUcVkf4mUSvP7pw57sunWVWVJsTukBW4VzLARGmZOhMnpnAyYYSs3fTH8QB2B1Z/wY8yBGR0b+4Ga23kmMJcVGV0gUjXxxpa6dfEkU21MqXAac= Received: from DM6PR11MB4491.namprd11.prod.outlook.com (2603:10b6:5:204::19) by DM5PR1101MB2252.namprd11.prod.outlook.com (2603:10b6:4:52::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Thu, 23 Sep 2021 12:46:54 +0000 Received: from DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::740e:126e:c785:c8fd]) by DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::740e:126e:c785:c8fd%4]) with mapi id 15.20.4544.015; Thu, 23 Sep 2021 12:46:54 +0000 From: "Ananyev, Konstantin" To: "Nicolau, Radu" , Akhil Goyal , "Doherty, Declan" CC: "dev@dpdk.org" , "mdr@ashroe.eu" , "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" Thread-Topic: [PATCH v6 03/10] security: add ESN field to ipsec_xform Thread-Index: AQHXq6YNV7F3c/b8JkedRSeQtZO9vquxmqtQ Date: Thu, 23 Sep 2021 12:46:54 +0000 Message-ID: References: <20210713133542.3550525-1-radu.nicolau@intel.com> <20210917091747.1528262-1-radu.nicolau@intel.com> <20210917091747.1528262-4-radu.nicolau@intel.com> In-Reply-To: <20210917091747.1528262-4-radu.nicolau@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 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: c9a3243d-00d4-4537-5051-08d97e9038eb x-ms-traffictypediagnostic: DM5PR1101MB2252: 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:2043; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iTb4aoJeEsSHMQDZa7HZ4+c3Bzaw6K1E27pll9QJ4aHFB+LD4wpgXrCtwq+k5wRwRjrMBJ+P3VRSBsYGYV2vRVAvXaP7lMs0GhSmIVRHIIFEg1g0+ms1hePKCqkOS4xz5Os2kk2DDaMaZX/5ZrSSng8rH+1N0Y1/Q4bW4cJRgfcOalGO8CTBHekWbvlccFl0u0BSnWU9fFkv6SIS8BiDcTNVjs/NvTpa5FdAp9rwSTXafK1DN6mGWJNebS+pEaa7rW7FcTxguUwevCxBTt6tKjuwR9Fr8/8TTWf6ZaL0AGtt9MitXMlz+FCkWIS1lWOItNRzagCdpdZ5niXZwhwo/K9WnTRomVqmD3nLKEJYega9VU+mwaepNuSLaBjP4DJVMv9YNzApP9FJ9BtQC931WLi1FOFfDdzCEG3uPJhMy7GQWeM/rcWlCiuprQGBU4CBP//JB9u6SGYvChO3ePMj+y9xgAlt8z/4Vs0gEPm2Kgsq7wbvzTEy/eqvWxZkHDElZbBIh9v0xUiNBmg77FGV63Cn3oiYQnabgkeRqeyQUa3TmhRzR5A/Q3Xla3tBUlvQmAiXnNZwh60+kt1tzFldObOIpBJN06koEKBAlZCNS7Dfz19tIH1tk/EVAVpeBCtY9nUW1TGZ1MN+JtalDGsFYmNHe2N3g8vF0b2mh+inQczDSPfyt0pqaA3Xvrx3SVToQOd4cutVpQtyAlRv00r+iQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4491.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(71200400001)(186003)(55016002)(15650500001)(7696005)(4744005)(508600001)(66556008)(6636002)(66476007)(26005)(316002)(8936002)(2906002)(38100700002)(122000001)(6506007)(86362001)(83380400001)(52536014)(38070700005)(9686003)(33656002)(76116006)(54906003)(66946007)(5660300002)(4326008)(55236004)(66446008)(64756008)(110136005)(8676002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eEwHFAOzQiSdqNHdJHc3+gcRqzKoQurW/9ZIzJl/Nh3AI+uSAVWRowJAMrBZ?= =?us-ascii?Q?KD864vsIVrbx2HJq0XZ8ptuopCxrEY//kqrzfKUDSB2GxCdAELyrY7xvK/DU?= =?us-ascii?Q?NaJ2ao62QzGyxzlS7sfhyI19GXXF8j2liOex0quE2wO5AdV8+INazS9H23VD?= =?us-ascii?Q?VCPsn6buXNLmz1brVrrlhSQ0stBAzMDqI9V5+gB+GSbbXSGFU5w3sH3euyTx?= =?us-ascii?Q?Zp+MmYpTsBstus0WfslAH5Yij/+GA/CrvXjiT+AdqkcADf+6OVHOjadMGNGk?= =?us-ascii?Q?QFaY3KXOPhYL0bn1KLMaF33mdQw2wXdOqeoy6/LIEEEHr7KAmeXan37eBJcT?= =?us-ascii?Q?VCESFBxE19nhhiGO/vJouT6+cs9s4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DTNgyuaVOG89XPsNhfZ3Ssz7l1x6auQ/BTKaBDNBDSp69v1ssGa5mqZ?= =?us-ascii?Q?6u9+H2PgYcZqgpfzlzp6bCwG?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4491.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9a3243d-00d4-4537-5051-08d97e9038eb X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Sep 2021 12:46:54.3352 (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: 4qaEQv7+UndySLaW3RXgol6z9/m2yA7d15VmXuPrlzZ+JJe1yhDckW6jNwNNJo42g1De+K1iVIVhg4Y5MtuZ9ZC1KOBJWlt5b62+QDqOLJ4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1101MB2252 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v6 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" >=20 > Update ipsec_xform definition to include ESN field. > This allows the application to control the ESN starting value. >=20 > Signed-off-by: Declan Doherty > Signed-off-by: Radu Nicolau > Signed-off-by: Abhijit Sinha > Signed-off-by: Daniel Martin Buckley > Acked-by: Fan Zhang > Acked-by: Anoob Joseph > --- > 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 84ba1b08f8..1bd09e3cc2 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; Do we really need low/hi here? As I remember ESN is 64bit value, no? > + }; > + } esn; > + /**< Extended Sequence Number */ > }; >=20 > /** > -- > 2.25.1