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 8775845F15; Sun, 22 Dec 2024 17:29:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 502E640263; Sun, 22 Dec 2024 17:29:39 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mails.dpdk.org (Postfix) with ESMTP id 250D240156 for ; Sun, 22 Dec 2024 17:29:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734884978; x=1766420978; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=lCzjNEaFFChTb9C2qJGmrP0d90/jjWRnQMHgh24djPk=; b=WdNybuDtR149lm9ZFrfgTLTGAwSUDcgkGE1lu01HpBBP+Lf2i8IhYM/L ytH90N4mDw4tsbpd7VgaTdRHCsm+dPPmdd/d6EGW3yQNTd+R3aiRsjT85 p3omHiCEJMEpEeFJjseQNdPHP6BHcAart6MSh/0M+0HhpdbbR4RN5yhPB TZItBKuXNB5Nb69V2C1WVHFfEQUrkWoDYfmzL6qNCp0cZ/QmG8g7QM3ok zuSSMpBawKLIyBRgTRU/qnFXIXVmYH8H+rXZxON0JU76GNYunK/zasqnO e/GdqrkEgPq80A6aSbfgZ7GsNQ433APoxS9Mgwx/gpzvwP29RtRX5SjIK g==; X-CSE-ConnectionGUID: Inf4Rxo/TteVVDyfUw8BEQ== X-CSE-MsgGUID: UdfgFb8aQ5yvjd1Q14Mnyg== X-IronPort-AV: E=McAfee;i="6700,10204,11294"; a="34684160" X-IronPort-AV: E=Sophos;i="6.12,255,1728975600"; d="scan'208";a="34684160" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2024 08:29:36 -0800 X-CSE-ConnectionGUID: cZ8C9ZxpR8GIf4k4aI5dxw== X-CSE-MsgGUID: 9shydp9jQWucS3qbbTj3qQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="103973877" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 22 Dec 2024 08:29:35 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Sun, 22 Dec 2024 08:29:35 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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.2507.44 via Frontend Transport; Sun, 22 Dec 2024 08:29:35 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.175) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Sun, 22 Dec 2024 08:29:34 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=P+heZ1m0rV8fyzQWU/FPbCk+g4VjmRgRYHpcoZIZ3MrXSwxVZvMAeDX0g8hHHm4Q8QVq5Dpjzbl7YzdGzWY5e5MImyrIj/G+XmLFXPqOnquNM5KCRiDvD96PM383BM6nDrYPoI2G6mFVOz7Kgaad9Ms68zaQFZaDYXw7HcyJpJUAxZqDMbC4XMbBgcAcVGHbRfwWJAphn16xn6AFWuJwHsQDdU3rB5BwCadMoRnCFKmPteK6FlfDGcPPSGpHkQAppjO9d+nnxw0MgTt2WANBquEDr+VrNjd+jrXoD2Si4IAbpxk2QsNqs+XNqjtaPWUXTnJ32pLTU2IhNmjw2TjArw== 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=tK8FxtC51UL/ZrWAtfhwPE3xPDLFFcqkWIqc8R+nTPs=; b=RTPbRGLgB2WRLFXuKQ9RpLQ267YHb70A8NEVO5ZVn8OHqs3f1n3chTsOyle96YFuDEh08+llic1EsvRjctbFzbvbv3GncRFsPCsbP3bYHIf1XKCnwHvRKSq3N0HnF/+oaL6j0NIcvTK982+VIvqxBJ5Sew7e3Q77uU/dOVJzUXnebZgArm+tN3h24rxDW+gA9f4HZlXFjYlbPlffK5/izEBi/Mbol8YGZCiPmZ2ohOA29FcjuDsxK6Nyuj2KRMI6R7Z0wgXtTqIAMnENCtiO1C0dT2UsZbKmX2RJhChJ/DLS989p1E0dUGWi6eEK4ZEc7E0dZ8x10A3hoQtMqFXCMQ== 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 Received: from SN7PR11MB7044.namprd11.prod.outlook.com (2603:10b6:806:29b::5) by PH7PR11MB6906.namprd11.prod.outlook.com (2603:10b6:510:202::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.19; Sun, 22 Dec 2024 16:28:43 +0000 Received: from SN7PR11MB7044.namprd11.prod.outlook.com ([fe80::79ff:96e:c439:d42e]) by SN7PR11MB7044.namprd11.prod.outlook.com ([fe80::79ff:96e:c439:d42e%6]) with mapi id 15.20.8272.013; Sun, 22 Dec 2024 16:28:43 +0000 From: "Naga Harish K, S V" To: Shijith Thotton , "dev@dpdk.org" CC: Pavan Nikhilesh , "Pathak, Pravin" , Hemant Agrawal , "Sachin Saxena" , Mattias R_nnblom , Jerin Jacob , Liang Ma , "Mccarthy, Peter" , "Van Haaren, Harry" , "Carrillo, Erik G" , "Gujjar, Abhinandan S" , Amit Prakash Shukla , "Burakov, Anatoly" Subject: RE: [RFC PATCH] eventdev: adapter API to configure multiple Rx queues Thread-Topic: [RFC PATCH] eventdev: adapter API to configure multiple Rx queues Thread-Index: AQHbUeh/1TTvq+W+HE2Il99vRL0wEbLydmwQ Date: Sun, 22 Dec 2024 16:28:43 +0000 Message-ID: References: <20241219073405.1724200-1-sthotton@marvell.com> In-Reply-To: <20241219073405.1724200-1-sthotton@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR11MB7044:EE_|PH7PR11MB6906:EE_ x-ms-office365-filtering-correlation-id: a8b56ec8-4459-4cfe-e161-08dd22a5b371 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?ZtrOMv2/hUYPBvHNecoyZgopWajMQRHOZjMWUGUsV4MPeX+67qCKagkzsvxq?= =?us-ascii?Q?ktmOJeHmOTCHHsxsAIyAVhjYyTHdUknX+2n/D3aqFcEyyW83wlVMMzIn/qpE?= =?us-ascii?Q?ImROwpaPS5GuPZ264z3E1phqT4r1WxKlgipeYlwDd8KIRcIqepUGEkp/GVHB?= =?us-ascii?Q?rHditn6uOZxG17WYAWfHjtRZRdBRytNRZoexYAwrktyjcOuwtWPCHOkKxQs7?= =?us-ascii?Q?GgtArL/tkDIBA/C0kfQlJrr8QbINa8XbqpZJqqxnJuHDfErPEXXwnjEMNxFQ?= =?us-ascii?Q?xHadpmsiY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7OgyzV5zDDWKbljI?= =?us-ascii?Q?hv9hZJdiSAYbiifFnZ6DJ8D7ol2JZX6dkta1c+1tA5T1E8KrbinzgGal0kwX?= =?us-ascii?Q?4KIwumDpcrSsQ9MVrbcXaq5A0xp9XZp6zrsdqNqFg3qVRdU2u+8Gmk85CTwX?= =?us-ascii?Q?ldOckkwAcPMJzEdToAeG/L4s6qYxmxhRPCBW/uCtTa+HD6unIGz2U1fGt20a?= =?us-ascii?Q?8tDb4l8VtQ2vbzmZDr5Ql4MYM+oXrpo6l7JmplrYUxL9GsIONZFxttcd9IHv?= =?us-ascii?Q?UDMWpw5DfVo069emivuYp+97ufCN9r8K?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB7044.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?x/0PKAagsxyBaAkth7mKO8zl9K4EB+wxYCL6p60NAMpADdnuLn1gB+elDigo?= =?us-ascii?Q?+mPtddi2fy5FzkqZxo5StRcoshNw1NyiTs+9YkPAOyoAIWHg4DCCt1+sACaX?= =?us-ascii?Q?olRLnc8a+HhxPBX4J41aLijdkyS5d+lKUQxZGkfct9InBupGBYgtkxip5uhP?= =?us-ascii?Q?Krgs2LDZCROaofCc15QhBn9f8MZ1/OwYWqtUmCKHY+P5lkfpY1LMfeJSfdKV?= =?us-ascii?Q?2eUWcSbSTBjZ8HLaoYDHIlQKRpQPXCp3dIg/FGUnrDF6hIlMQWXMvTyhsj3q?= =?us-ascii?Q?/LlTS7pRY2qyJ3oGJeBv4q6bP5d2vxxWlDLDxpAZPKFiiYpd0BV6wWdo6XK1?= =?us-ascii?Q?GYJNHTd1IKyTBKTW7PFKphXC1kWSEpEcitktbtNJoflg1l5nZN3ixpSMHITR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6PRMAsFeavYcvKni/jKP2qEjzbLCcitOpdCq?= =?us-ascii?Q?+SROJdyqIH2yd8H1OL4z1vkONkXbVtZXBcXMtSsNzlqT7UeO2JfjmwgVCkWx?= =?us-ascii?Q?p4v9wwGxCUeBwTiQ5ueSszVSigdpJKxuGjIaIeUrmfqH/5zW/WkiL/Kjx3e+?= =?us-ascii?Q?1aZfJf95GThbU2HB1M90/QbJq+Pjm1Sc4jL+c5xs8Dx/P83BNSstDvzmFGFK?= =?us-ascii?Q?6SU0JrXqBdeGWS7ieKnEYXYV3bSH0/2QwdyrGF5DGaiEQlbFCpVXxljrPGsx?= =?us-ascii?Q?RZL2YBOvmE+S/N3pZKTKJ6TdgfKGeUhZhrWbpr0I?= 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: SN7PR11MB7044.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8b56ec8-4459-4cfe-e161-08dd22a5b371 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Dec 2024 16:28:43.1988 (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: VqNg3ZthTq3GML1iJBB1gSXsaXsRTzKbybwA2h1SP2/otim/5psBs+7KUnunFiYa05Be0JsGPno0IlwoGJCXDg5ZL4h7rtq8N2lf+XCj+Xw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6906 X-OriginatorOrg: intel.com 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: Shijith Thotton > Sent: Thursday, December 19, 2024 1:04 PM > To: dev@dpdk.org > Cc: Shijith Thotton ; Pavan Nikhilesh > ; Pathak, Pravin ; > Hemant Agrawal ; Sachin Saxena > ; Mattias R_nnblom > ; Jerin Jacob ; Liang > Ma ; Mccarthy, Peter ; > Van Haaren, Harry ; Carrillo, Erik G > ; Gujjar, Abhinandan S > ; Amit Prakash Shukla > ; Naga Harish K, S V > ; Burakov, Anatoly > > Subject: [RFC PATCH] eventdev: adapter API to configure multiple Rx queue= s >=20 > This RFC introduces a new API, rte_event_eth_rx_adapter_queues_add(), > designed to enhance the flexibility of configuring multiple Rx queues in > eventdev Rx adapter. >=20 > The existing rte_event_eth_rx_adapter_queue_add() API supports adding > multiple queues by specifying rx_queue_id =3D -1, but it lacks the abilit= y to apply > specific configurations to each of the added queues. >=20 The application can still use the existing rte_event_eth_rx_adapter_queue_a= dd() API in a loop with different configurations for different queues. The proposed API is not enabling new features that cannot be achieved with = the existing API. Adding new APIs without much usefulness causes unnecessary complexity/confu= sion for users. > The proposed API, rte_event_eth_rx_adapter_queues_add, addresses this > limitation by: >=20 > - Enabling users to specify an array of rx_queue_id values alongside > individual configurations for each queue. >=20 > - Supporting a nb_rx_queues argument to define the number of queues to > configure. When set to 0, the API applies a common configuration to > all queues, similar to the existing rx_queue_id =3D -1 behavior. >=20 > This enhancement allows for more granular control when configuring multip= le > Rx queues. Additionally, the API can act as a replacement for the older A= PI, > offering both flexibility and improved functionality. >=20 > Signed-off-by: Shijith Thotton > --- > lib/eventdev/eventdev_pmd.h | 34 +++++++++++++++++++++++++ > lib/eventdev/rte_event_eth_rx_adapter.h | 34 > +++++++++++++++++++++++++ > 2 files changed, 68 insertions(+) >=20 > diff --git a/lib/eventdev/eventdev_pmd.h b/lib/eventdev/eventdev_pmd.h > index 36148f8d86..2e458a9779 100644 > --- a/lib/eventdev/eventdev_pmd.h > +++ b/lib/eventdev/eventdev_pmd.h > @@ -25,6 +25,7 @@ > #include >=20 > #include "event_timer_adapter_pmd.h" > +#include "rte_event_eth_rx_adapter.h" > #include "rte_eventdev.h" >=20 > #ifdef __cplusplus > @@ -708,6 +709,37 @@ typedef int > (*eventdev_eth_rx_adapter_queue_add_t)( > int32_t rx_queue_id, > const struct rte_event_eth_rx_adapter_queue_conf > *queue_conf); >=20 > +/** > + * Add ethernet Rx queues to event device. This callback is invoked if > + * the caps returned from rte_eventdev_eth_rx_adapter_caps_get(, > +eth_port_id) > + * has RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT set. > + * > + * @param dev > + * Event device pointer > + * > + * @param eth_dev > + * Ethernet device pointer > + * > + * @param rx_queue_id > + * Ethernet device receive queue index array > + * > + * @param queue_conf > + * Additional configuration structure array > + * > + * @param nb_rx_queues > + * Number of ethernet device receive queues > + * > + * @return > + * - 0: Success, ethernet receive queues added successfully. > + * - <0: Error code returned by the driver function. > + */ > +typedef int (*eventdev_eth_rx_adapter_queues_add_t)( > + const struct rte_eventdev *dev, > + const struct rte_eth_dev *eth_dev, > + int32_t rx_queue_id[], > + const struct rte_event_eth_rx_adapter_queue_conf > queue_conf[], > + uint16_t nb_rx_queues); > + > /** > * Delete ethernet Rx queues from event device. This callback is invoked= if > * the caps returned from eventdev_eth_rx_adapter_caps_get(, eth_port_id= ) > @@ -1578,6 +1610,8 @@ struct eventdev_ops { > /**< Get ethernet Rx adapter capabilities */ > eventdev_eth_rx_adapter_queue_add_t eth_rx_adapter_queue_add; > /**< Add Rx queues to ethernet Rx adapter */ > + eventdev_eth_rx_adapter_queues_add_t > eth_rx_adapter_queues_add; > + /**< Add Rx queues to ethernet Rx adapter */ > eventdev_eth_rx_adapter_queue_del_t eth_rx_adapter_queue_del; > /**< Delete Rx queues from ethernet Rx adapter */ > eventdev_eth_rx_adapter_queue_conf_get_t > eth_rx_adapter_queue_conf_get; diff --git > a/lib/eventdev/rte_event_eth_rx_adapter.h > b/lib/eventdev/rte_event_eth_rx_adapter.h > index 9237e198a7..9a5c560b67 100644 > --- a/lib/eventdev/rte_event_eth_rx_adapter.h > +++ b/lib/eventdev/rte_event_eth_rx_adapter.h > @@ -553,6 +553,40 @@ int rte_event_eth_rx_adapter_queue_add(uint8_t > id, > int32_t rx_queue_id, > const struct rte_event_eth_rx_adapter_queue_conf > *conf); >=20 > +/** > + * Add multiple receive queues to an event adapter. > + * > + * @param id > + * Adapter identifier. > + * > + * @param eth_dev_id > + * Port identifier of Ethernet device. > + * > + * @param rx_queue_id > + * Array of Ethernet device receive queue indices. > + * If nb_rx_queues is 0, then rx_queue_id is ignored. > + * > + * @param conf > + * Array of additional configuration structures of type > + * *rte_event_eth_rx_adapter_queue_conf*. conf[i] is used for > rx_queue_id[i]. > + * If nb_rx_queues is 0, then conf[0] is used for all Rx queues. > + * > + * @param nb_rx_queues > + * Number of receive queues to add. > + * If nb_rx_queues is 0, then all Rx queues configured for > + * the device are added with the same configuration in conf[0]. > + * @see RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ > + * > + * @return > + * - 0: Success, Receive queues added correctly. > + * - <0: Error code on failure. > + */ > +__rte_experimental > +int rte_event_eth_rx_adapter_queues_add( > + uint8_t id, uint16_t eth_dev_id, int32_t > rx_queue_id[], > + const struct rte_event_eth_rx_adapter_queue_conf > conf[], > + uint16_t nb_rx_queues); > + > /** > * Delete receive queue from an event adapter. > * > -- > 2.25.1