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 833F54569C; Wed, 24 Jul 2024 12:19:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5681C410E7; Wed, 24 Jul 2024 12:19:54 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 9C5D840E19 for ; Wed, 24 Jul 2024 12:16:38 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46O1va0j017602; Wed, 24 Jul 2024 03:16:37 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 40j02nr2mj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jul 2024 03:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DOAt/wA8oRTnoCNpvd9m3Y69Bbug3C3iOQGlqWvZiXE34d66j4GBqIVJGJhd1EWoD6ReERqoKWbY+4AlBw6pPG2FahW+0zVIr9/L4+cGYOqgd4u1tlh+FT3OgxZBdCsoGpRaHJ3Y09jy4RVP0FWQYfp3xHLVuIaAQD7fd3AvObqCHQ20t6Xv1CdBmbnLU2L8+OoPfbZq91G/kyypIQNDev0U0ZkH/GJPJ8iyMVw5lyGy6dEZCEgPSAJ5X2ogFdUN6GcwRtKVWo2kCn4NtJbG6SdBIah0gx89jpDSUwam0h6NzakFNtyuNGikpU3ZvHLi2xjJ1eaT9rQEK/frlBFB1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0i4GBV082XP2pcpQH8WZmL4k5iLDBsa534JsZ3gH6II=; b=rAhdAQ4mjr220CfgvI81HU7L8zFZTGELKzun+eI4wRsPvdy5fjz1yhszfHR6KjNy+6eCuH3rE+BEBYLbZiFMKfonbjfAs4XOQe+LciBWb9LC4IuEJ9lBpRjFBQQp96zzINyXydRTjdX6i40SHnUHI0Sxh+3XpQ/SaY0QVViSYltEvFBkNGP0LlDOjhlEyhDj/hKipsTiN+kAtorw8cBMn2c1uLIj7HQWldTQKQygxWJve5fongniHYSwtfpJhVYI4hn5+SFv6o7Pb0KkQiP3Sg/TV/MablEaV0z3+xx3vsTrQg04hV2VZa69hin36Hl/fXeXIkTc25POVLKJ0OFxfA== 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.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0i4GBV082XP2pcpQH8WZmL4k5iLDBsa534JsZ3gH6II=; b=fbYjbi0WnWDKBYJlDNtP9zp4DZqVIgsXzRGbFnWJSAgZVtxbsLOgAh+PPmEUP0w5AUff7IIYLWeoeyKSo54fJgHrPIsDmqKZ9Jp8GpLwW2DVIjPhAULc3cxa06G2Fgqlos2HZ8JPEFUUPAkZwOa3aji05KqgxZiTZdhAxBpqRgA= Received: from PH0PR18MB4508.namprd18.prod.outlook.com (2603:10b6:510:e6::21) by CH3PR18MB5459.namprd18.prod.outlook.com (2603:10b6:610:15c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Wed, 24 Jul 2024 10:16:34 +0000 Received: from PH0PR18MB4508.namprd18.prod.outlook.com ([fe80::c4a3:f671:373a:b410]) by PH0PR18MB4508.namprd18.prod.outlook.com ([fe80::c4a3:f671:373a:b410%5]) with mapi id 15.20.7784.016; Wed, 24 Jul 2024 10:16:34 +0000 From: Aakash Sasidharan To: Konstantin Ananyev CC: Akhil Goyal , Jerin Jacob , Anoob Joseph , Vidya Sagar Velumuri , "dev@dpdk.org" , "konstantin.v.ananyev@yandex.ru" , "vladimir.medvedkin@intel.com" Subject: RE: [PATCH v2] doc: announce rte_ipsec API changes Thread-Topic: [PATCH v2] doc: announce rte_ipsec API changes Thread-Index: AQHa3QVxWpwnwh/b2kGZlfgTgGNRvLIEef+AgAErwYA= Date: Wed, 24 Jul 2024 10:16:34 +0000 Message-ID: References: <20240723130254.2128028-1-asasidharan@marvell.com> <20240723133706.2150828-1-asasidharan@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4508:EE_|CH3PR18MB5459:EE_ x-ms-office365-filtering-correlation-id: f166be54-50dc-4eb5-9c77-08dcabc9b21b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?3DLYkqNLtLO1Ps7Vwxkt2I0b9CZzQyxjjF42NFlTV70mPrSzK83YrngQAFHp?= =?us-ascii?Q?ivSSToIrrGLSC6nGqULdgj9VTq5s+iNhBrGKewOwhtiIuRMcTAy7BcknV/Vh?= =?us-ascii?Q?FRE+rE8qvuOc9yW92igB+Dqz1P6Wl8/9/EBw/Rpt4tKvcH2KJuHX3IyutLTA?= =?us-ascii?Q?DlHvBzVJPg0yTfvGj8xz6x2ab07suAKaTt2SERjWR/IVPV9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coC+wL3E2C79A6zCsJHvytRJrE8B4T4lh7CQ9xx6o?= =?us-ascii?Q?zNMy2sleKoF0UmEBUO+0orug3zaTAFT2Xox1PrWgjM6IiZFWsvmbCFlkTM7v?= =?us-ascii?Q?NtHjOlKUbIj4twPbBEFhtTCF2miKkv08GxLWSI+nt8N+JO73CaqJk50D4Frq?= =?us-ascii?Q?ErYl1zepGKz9ZP48BeLn2RpspS0S+ZjknyVQeEYGfMMfFn7bDajmuhyHuvpP?= =?us-ascii?Q?6rjzzorFYxCtecVphty/iEeGcR7NXxZVbF3ohNjhixy9MssNYl3T+pIa7Qsx?= =?us-ascii?Q?y2P0W5edzPWEG0GYkGXmMr4+UqNxn46gOTzTFxCp0S0rcTwGwg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4508.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0tyOBP1lmGsiXbmqpEXiwMKPtbrgesg/WYJ1Z3moBlIONVmZCwEbH6JpY2e3?= =?us-ascii?Q?mY4i8clN0QegxQkUZqrnUYclD0lSz1DW7zi/AMNeLCty72gIJFqRJtfCgIo3?= =?us-ascii?Q?AaDGUaH31B/FuyA/GcqrsW2CET9J09mmJCR8CGwG1wBeP7juW3ALD0AUxFtB?= =?us-ascii?Q?FrmxTeJAGlofcj57eWXilFErIL0HMqvwKyP819jET7+X+7El8nvsySqY4lkd?= =?us-ascii?Q?IFp4zb+S2ThL5St2Nr1FCGnEBcq1vQUIbM3mm48OczlU1sbNbX6Of8szyc3Q?= =?us-ascii?Q?9yLiEaNzG9RBdVyf+f0lIF02A8wIKKNytTdzTwwfZTXX5ApeFcOcyWcnEDTn?= =?us-ascii?Q?MOaICCH231cq92tM68eqoM1J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j/+b7NcPmmmbX?= =?us-ascii?Q?72n6RlLYriL+uyhBIgBN7aYm3Yjef79eay43qtbiaLCEHz9GmlgRDC3UMAOT?= =?us-ascii?Q?S6bvHNxEnhEifmv29iQal7yFnQYwY8BkZEENbHDLqC+dQUQ1WROR2gHca0KZ?= =?us-ascii?Q?nd8Qo677V50LwznWFrFuMuuLjW3KdkgHfJrQWJw6yM7OOQot+rNOGr6v6i+W?= =?us-ascii?Q?I3djSUpgGCgfzpDTz58bBf/TLun+2U/D9z++O1xHJtNu7KA24/pVPXWXWs1N?= =?us-ascii?Q?SVF7CBWZAx+q4Vxgk9l7OqKnsa1LsbkpMjrFv3QorhDLTedDa40P8J/d+hny?= =?us-ascii?Q?n1gNMVKeDwZuV9/IeDWnVbVvQdDX4ncmVkOpbhxC?= 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: PH0PR18MB4508.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f166be54-50dc-4eb5-9c77-08dcabc9b21b X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2024 10:16:34.4643 (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: FOgLfeX4tGbL8ft4wxn4ewHMhRQxsxKLX71VNg0KUwGR7s1ddi3eS5En+kHyFCVTDje7fMKPdUiqJ2z7C9kJMw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR18MB5459 X-Proofpoint-ORIG-GUID: Q80DdL2hSyo0-F6LZg7y6eRCUqg4dsTI X-Proofpoint-GUID: Q80DdL2hSyo0-F6LZg7y6eRCUqg4dsTI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-24_07,2024-07-23_02,2024-05-17_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 > -----Original Message----- > From: Konstantin Ananyev > Sent: Tuesday, July 23, 2024 9:35 PM > To: Aakash Sasidharan > Cc: Akhil Goyal ; Jerin Jacob ; > Anoob Joseph ; Vidya Sagar Velumuri > ; dev@dpdk.org; konstantin.v.ananyev@yandex.ru; > vladimir.medvedkin@intel.com > Subject: [EXTERNAL] RE: [PATCH v2] doc: announce rte_ipsec API changes >=20 > Hi, >=20 > > In case of event mode operations where event device can help in atomic > > sequence number increment across cores, sequence number need to be > > provided by the application instead of being updated in rte_ipsec or > > the PMD. To support this, a new flag > > ``RTE_IPSEC_SAFLAG_SQN_ASSIGN_DISABLE`` > > will be added to disable sequence number update inside IPsec library > > and the API rte_ipsec_pkt_crypto_prepare will be extended to include > > ``sqn`` as an additional parameter to specify sequence number to be > > used for IPsec from the application. >=20 > Could you probably elaborate a bit more: > Why such change is necessary for event-dev mode, what exactly will be > affected in librte_ipsec (would it be for outbound mode, or both), etc. >=20 [Aakash] When using eventdev, it is possible to have multiple cores process= packets from the same flow at the same time, but still have ordering maint= ained. Sequence for IPsec would be like below, 1. Ethdev Rx computes flow hash and submits packets to an ORDERED eventdev = queue. One flow would always hit one event dev queue. One eventdev queue can be attached to multiple eventdev ports. 2. Lcores receives packets via these eventdev ports. Lcores can now process the packets from the same flow in parallel. 3. Lcores submit the packets to an ATOMIC queue This is needed as IPsec seq no update needs to be done atomically. 4. After seq no update, packets are moved to ORDERED queue. Lcores can now processes the packets in parallel again. 5. During Tx, eventdev ensures packet ordering based on ORDERED queue. Since lib IPsec takes care of sequence number assignment, complete rte_ipse= c_pkt_crypto_prepare() routine need to be made as ATOMIC stage. But apart from seq no update, rest of the operations can be done in paralle= l. In addition, we are also looking at another use case when a set of packets = from a session can be IPsec processed by rte_security device and some packe= ts from the same session would need to be SW processed with lib IPsec. Here= again the sequence number assignment would need to occur at central place = so that sequence number is not repeated. Initially we are looking at outbound only. But similar kind of use case wou= ld be applicable for inbound also. > > > > Signed-off-by: Aakash Sasidharan > > --- > > doc/guides/rel_notes/deprecation.rst | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/doc/guides/rel_notes/deprecation.rst > > b/doc/guides/rel_notes/deprecation.rst > > index 6948641ff6..bc1d93cca7 100644 > > --- a/doc/guides/rel_notes/deprecation.rst > > +++ b/doc/guides/rel_notes/deprecation.rst > > @@ -133,6 +133,13 @@ Deprecation Notices > > Since these functions are not called directly by the application, > > the API remains unaffected. > > > > +* ipsec: The rte_ipsec library is updated to support sequence number > > +provided > > + by application. A new flag ``RTE_IPSEC_SAFLAG_SQN_ASSIGN_DISABLE`` > > +is introduced > > + to disable sequence number assignment in lib IPsec. > > + The API rte_ipsec_pkt_crypto_prepare is extended to include ``sqn`` > > +as an > > + additional parameter allowing application to specify the sequence > > +number to be > > + used for the IPsec operation. > > + > > * pipeline: The pipeline library legacy API (functions rte_pipeline_*) > > will be deprecated and subsequently removed in DPDK 24.11 release. > > Before this, the new pipeline library API (functions > > rte_swx_pipeline_*) > > -- > > 2.25.1