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 42001A0C54; Sun, 5 Sep 2021 16:48:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7B4140042; Sun, 5 Sep 2021 16:48:04 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id F32594003D for ; Sun, 5 Sep 2021 16:48:02 +0200 (CEST) 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 SMTP id 185CHQ02021325; Sun, 5 Sep 2021 07:48:00 -0700 Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam08lp2041.outbound.protection.outlook.com [104.47.74.41]) by mx0b-0016f401.pphosted.com with ESMTP id 3av8amu8gw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 05 Sep 2021 07:48:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=evqv+Lz7AzYZX76ESS+tRhKgkmBARg+1f7iZdyp1NpA/WU/4qdXh0Beb5Ftp4LxhzyQTrBfq6knCT93VoNV43hQ8GSNRu9WxpS7b+pVrDwxFSZTV+/+cRxUqFFRceXkcFgSWUh2kt9rJHxMub9biTQO6qCu0xpq57sp0RsH7SA9bwVWxUcCUc88YA2ph2EgJgJlwZVVbSVf1zuQ6V5Q1G5eCKD6coXZ22xSsyDQVZp28+8I9a4ErkiDPwSUKr/2uGi3GwxNNFhuaJyryQ7/MO5/gasFd5pMSKzlXeRAzOBgEzgSWclMfdTu1Kf7SS3WrcdkAUyHq+r4Asb2wwLWoeg== 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=Z9SOb/kz8J3I45UtQdhX8Ld81jqYHFJr0fDA6gFOJMY=; b=YiGmS8YC2kvy1LhStAxB15cOuWdRYqfFefUsmyr0RWM/G+vC3BGY73gbR9PdrmXA2H3I4gF8Xaiacn2dgQVCs575AIc3Nj91orj8QKrVkLOsA5nAex4w+Y72sffrXRlWfTZ6mML+ug/BW0C9WsORdDtb6jOsY4z00CXFQYiKwoOfMEd/DndizB3u9aMDQdoXTDJaUfAkVZRcVzt++HD1VubuJSPjBRg6jfE1f1D3xPKL0/Ar/49HakqrhftQmYqhdaI1vLAcPuNFNnlqYMECTSQ2oescZ8ZaxnoTm/sHfcAVxn88asccCvNs3MuV3vX2/JTa0PkEjCAoPQryXaxrkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z9SOb/kz8J3I45UtQdhX8Ld81jqYHFJr0fDA6gFOJMY=; b=Ddwkp4U5aeU/qdr6ryMOLBoEFrMDc7DrXmqrfXD4cRlBLOyb9Y/nlJEHvfhjtaf2VVng5oPC7MPMqG7txpSwRNP2insYyyX/lm7Cv3DG3v+GHw9bAaXEGkRjlx798953t8R1tjL1S2hT1LlRtA2Brojg/OX/Rd647y2Vr18SeXY= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4827.namprd18.prod.outlook.com (2603:10b6:303:ee::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19; Sun, 5 Sep 2021 14:47:57 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::411f:5b87:321e:de29]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::411f:5b87:321e:de29%3]) with mapi id 15.20.4478.025; Sun, 5 Sep 2021 14:47:57 +0000 From: Akhil Goyal To: Radu Nicolau , Declan Doherty CC: "dev@dpdk.org" , "mdr@ashroe.eu" , "konstantin.ananyev@intel.com" , "vladimir.medvedkin@intel.com" , "bruce.richardson@intel.com" , "roy.fan.zhang@intel.com" , "hemant.agrawal@nxp.com" , Anoob Joseph , "abhijit.sinha@intel.com" , "daniel.m.buckley@intel.com" , Archana Muniganti , Tejasree Kondoj , "matan@nvidia.com" Thread-Topic: [EXT] [PATCH v4 03/10] security: add ESN field to ipsec_xform Thread-Index: AQHXoLdoIbBUBmn9N0yQlmM+3aFWTquVh3Vg Date: Sun, 5 Sep 2021 14:47:57 +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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=marvell.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 949cac89-7e97-4a6a-fb3d-08d9707c267c x-ms-traffictypediagnostic: CO1PR18MB4827: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NH9PJEJyZwU53FkehwGUfBojEC87yeBiYqEnI72V68RL9S/mznr7bOFNpIbnAm8UNyD3aDUTIgt1J5RYMQIG6HflNXQFNFO2fHfoma5uVk1OlCdDuYnoJLNxxVmhVjdBBjrtHN/WxSqvXSoF3WvOLZ+Ly+Ni/sBYseQhYO0wuoVHLBOkKZj3neGe9luIJ2ubY9i7Df3dKoglZYxEwaRz38bkdIdyHX2IM1KWKek2tmTXLCsofzgsct3I8XnmrU4VRQ5mj7tTSAU0H8vRaaFSbd2fpeW1e5b+SdgXLdQrdhpRuHhN9DilGpV8zysaoqamJTJs9Wo5/8z54cP38iTS8BrQvbEZehmg3/1BKGgXQyIFdCKawn+cTkIkhzwfqhQ+aCD07GWl3ETTYuPA8lngjBR7nHCABwHnAFA5N7tlgCd+uoBuUuG0ifS9GyHcsKrIjAUkmKRCfNLY0MWa1gKqdqbykRzFbMJ5hqKHgVQHRoOvinm60rugS0np/KWY0PeVLYLLlc/3UhVwb3iUwwJLq/QysQ7hxkyhC80DdE/WeBwcf1MHLTiVO9IOH0+4guh32ouk7t3p1CdleU0aCJ5Hx/70WBpj9lz9OcYXtBOq9Gmk8P9zID1goutqrqa3jVBuu2YmBl53wUs8pv14i3gcdRHZCLVGo4aqTVJhc/oaHXjIvvD0oQVcqsSAPrNHmqifR/FRLEOXmWVsMJFO7NCPYBFGQGN/fEnvOKjIYYtLbkUrToylAph85mnAuq4NJ8EiJR1Kzbduwm+zDnC1F6LG/wtOmCeUNGZBzBE1cVGNiK0= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(346002)(376002)(39850400004)(396003)(186003)(7416002)(122000001)(38100700002)(316002)(478600001)(26005)(66446008)(38070700005)(86362001)(8936002)(66556008)(66476007)(83380400001)(110136005)(64756008)(54906003)(66946007)(76116006)(2906002)(7696005)(966005)(71200400001)(55236004)(15650500001)(33656002)(9686003)(52536014)(6506007)(4326008)(55016002)(8676002)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hL9QECwLadtzsVT0gk3NWQ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ascii?Q?1J6hK67OWi/ES5nGqu292QYNsu7grKGgaog1LSYBPhoBtlkHVMjz6+oDk4MI?= =?us-ascii?Q?Fp/rlKp783eK1gIV1DdhJETlFUJ+MJ1OmsKzeMaaFwsl7OsppghB8ZGtsA7D?= =?us-ascii?Q?aeif8BgqlmD1mJktr5C3NZScgk0ZoZxKSc3ksk/Gmmqweg1741bFZF2/XqbC?= =?us-ascii?Q?rw1BTwaF+myMrbSoL99MI1ubdED4SPE5KRPWB/C9GRTWYuhQv1qTP1+ISjN2?= =?us-ascii?Q?STO0wOFu8zYilD+9RwO6bfaarKkkNxeC69Y1RutZKsXqgavLNfVUZ37qz9pa?= =?us-ascii?Q?iuNJ7mKr66eMWH+9ZsYViYVe826a7hTCTp8u2C7HU9Ur197afUoJe51qdzhS?= =?us-ascii?Q?OkRRAlU2faii2NeHWoRFn68aKQ2Rq4TlJuC2vTk/CShOcLZSoLDz9v1dm0iS?= =?us-ascii?Q?qGu30AKMgDuQs0+pdkIM1umo?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 949cac89-7e97-4a6a-fb3d-08d9707c267c X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Sep 2021 14:47:57.2093 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ocyJWmrD8lHBPg+DU6FrB1Tr59Kt/VZB7FeHCkJCuo4vZkV+Ad4BKmlG8zm6sbgLo2BamdYKKlyyimbeLwkHXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4827 X-Proofpoint-GUID: 2-MN84uBD4XNFECbM0E2w3821ATREbQ6 X-Proofpoint-ORIG-GUID: 2-MN84uBD4XNFECbM0E2w3821ATREbQ6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-04_09,2021-09-03_01,2020-04-07_01 Subject: Re: [dpdk-dev] [EXT] [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" Hi Radu, > ---------------------------------------------------------------------- > 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 */ > }; Can we use the following change for monitoring ESN? http://patches.dpdk.org/project/dpdk/patch/1629207767-262-2-git-send-email-= anoobj@marvell.com/ I believe ESN is not required to be set as SA parameter, it is normally maintained by the PMD and application should be notified if a limit is reac= hed. Regards, Akhil