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 E4722A0032; Wed, 21 Dec 2022 07:03:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CCFBA40698; Wed, 21 Dec 2022 07:03:44 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id C11EE40684 for ; Wed, 21 Dec 2022 07:03:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671602621; x=1703138621; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=qYeL+GP2/v3rTlJ32J5g/7cdePngprMCtw/yPhtCRw0=; b=Lm0b+WHgWLH9Pm9RJEIepn/B159W5vGMx0EkMHGiBSgsSZem93QU416v 8GHTi6tT7xKKdVJx7bJvsrQybroqA3NrJ6o6SvqC28RT8puwRWfO9dnu/ HKAqdUWZa0/ZaZMB1yxi3NLXYLcCoExjb/yEKGOjko30vCyq/LGeQnyRO mJsuZXWwYAbvVccAlLP7gWD8aKkKLgPmyUQEFwQK4YVspjd1ZJJEvct0j xSKMLFOWFWlJPLSW6Z2/LmCqHsVudcZ8HswYX7v483vAGCvcxURHJW7Uw eYY+zJdkMYWZE338rpFv5ffrmnzgeTsWTOYJL3969n45YcBS4DOkmmFZm A==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="303220600" X-IronPort-AV: E=Sophos;i="5.96,261,1665471600"; d="scan'208,217";a="303220600" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 22:03:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="629002173" X-IronPort-AV: E=Sophos;i="5.96,261,1665471600"; d="scan'208,217";a="629002173" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga006.jf.intel.com with ESMTP; 20 Dec 2022 22:03:35 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 20 Dec 2022 22:03:33 -0800 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 20 Dec 2022 22:03:33 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Tue, 20 Dec 2022 22:03:33 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) 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.2507.16; Tue, 20 Dec 2022 22:03:33 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fU/y4lVm2q0x7XdN3gb+8QrxAWvKzM1LyZ9iHbqzF3//TB7g5Np2ZX0miRO1GwdylC5DVmonDemKczbeKq1XhEz3aCCUWXLK5cmcgG/YHXsNsPmCL6XNVFirY7nEtijZ5WDcpuykjITw/dwrfWKr6dCsFhYGEbrWYwPSZdAix7STa4xgB2RRqf0/8/Z09fVyFv/VmAmRJMMiU1N+W0AnubdWv6OEQi4uRR04FFU1ZdNhaDK9NWtjYwxtw5Zr9/82buAP42AjE6hao3r+WijLQ9a2k2oQzT3u73RWwy/F7B3UZw7AXVSQi0Yk5thLHAlMECGxC9yoa6+z0doM91Qd7g== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7VPp0PxRry6L/cXjkb4CVXKVCOm/mKDp1Fj++/btsCY=; b=aotvZRL8I+gndgWlM3bpM2zBEyZj3HFuxaDVEbV4pCm6kQnHC8r+cxMBJhVOLEMuGlHsfJBWGcUtTQ//qWMp1gBepRfJN7R3HeBDRNEbTD21qvA3KJgoUShAzxKO4LyUx4KEw2P8b0AqKcTdLhRbHeFdegjJOBUpKnejorhqYXSS5xPRcHvfWjqKjFF1uASEWNffKi590fsDLZfHcBN95+IZOEnKQIWRzwfmqVQ9Kq8UPLFQ/2n0jFOPs2mzoZ8u+eSkoeqHWCpfvTU4haeHfSc/7PyUR52WKxXhS9n1jGpqG/EgFt72ZjrwCDVR4MUl2PEFWBccODewq4YsRnJ5kA== 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 DM6PR11MB3868.namprd11.prod.outlook.com (2603:10b6:5:19f::13) by PH7PR11MB7719.namprd11.prod.outlook.com (2603:10b6:510:2b4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Wed, 21 Dec 2022 06:03:31 +0000 Received: from DM6PR11MB3868.namprd11.prod.outlook.com ([fe80::ab8e:89f1:e2a4:583c]) by DM6PR11MB3868.namprd11.prod.outlook.com ([fe80::ab8e:89f1:e2a4:583c%5]) with mapi id 15.20.5924.016; Wed, 21 Dec 2022 06:03:31 +0000 From: "Naga Harish K, S V" To: "jerinj@marvell.com" , "Carrillo, Erik G" , "Gujjar, Abhinandan S" CC: "dev@dpdk.org" , "Jayatheerthan, Jay" Subject: Re: [PATCH v5 1/4] eventdev/eth_rx: change eventdev reconfig logic Thread-Topic: [PATCH v5 1/4] eventdev/eth_rx: change eventdev reconfig logic Thread-Index: AQHZFFMxx7Gc229GgUe0OYbMz2vauq532svF Date: Wed, 21 Dec 2022 06:03:31 +0000 Message-ID: References: <20221219062852.2557488-1-s.v.naga.harish.k@intel.com> <20221220091137.3137300-1-s.v.naga.harish.k@intel.com> In-Reply-To: <20221220091137.3137300-1-s.v.naga.harish.k@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: 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: DM6PR11MB3868:EE_|PH7PR11MB7719:EE_ x-ms-office365-filtering-correlation-id: 63699759-f5c1-4394-e27a-08dae319165d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ulibgsdwLbUmT3qHmJcMDh9aZQsHZLiO99CwIwjFO19X/az0Psfe+v8Pv91/zxEHahDPnIIunotTHmYQApxDVPCciSaxS8qJH/N+f1I8Iac4Bg/hJCyWdPkj4w5/vGNGQ3Y7+5cgTdQVyy6rE/cdHFAIa3es0nOn8s6mBUV35ar7fdgMslaOwBJkVW3rp5FC8Vooj2m7qPhe7HOfM9QX1LK6em/MzM02Q6MrfiPcJMMmD8d1Bsa676BUCSxUneZc0m5EVYTLQIirvo20AslCf9YoDxpFeJfWQSPBdSLgyXAT0Hu34ESXHnWWYsvhwH5gmScqN1f6xKUogClG66nAmL5Iexah+nkv8Iq8B+nC8GIvZQIOwKmrJbpAMwmli7wah7NT2k/0r7++IKpItRZDPJcA9IEQqhcEPKutckonOXwXdmGa9Sk+U1m66X6XKL4ftzDp/m5B/1JMTuQQq8EwmKGjacXP8Q5Srof1L6ylg4IYl+zd21xDO763JH76GAYuFAnejr3L1QeD0+HlJHCbov2H2KgRf9vfMyqFWWufXer9dmJkjA6974am4HYhx2tFWx4tdD7i/Df8/qHo4zCdZaV41yCS4lIX7FBnp10DngUxZuQKhjcL/uDOYrP4boPIxdlwAHmm+qVDzUsYJBtzE/5uaKo+v01PZBpRcD9cR4JEyGfQ6zP4HirNet8dlqPm341wdg2FO1GuKcJJoXWeNg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3868.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(346002)(366004)(136003)(376002)(39860400002)(451199015)(52536014)(8936002)(38100700002)(83380400001)(71200400001)(6506007)(53546011)(7696005)(41300700001)(19627405001)(2906002)(110136005)(55016003)(478600001)(54906003)(86362001)(316002)(33656002)(9686003)(26005)(122000001)(5660300002)(107886003)(6636002)(4326008)(8676002)(76116006)(66446008)(66476007)(91956017)(186003)(66556008)(64756008)(66946007)(38070700005)(82960400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?2F2CbnfAlebqfXTYZEotJxQOSssJGSyoe3B7HaQfd2Qh7mg/8C9BQ1ZFEQ?= =?iso-8859-1?Q?M0s9QsVTYkib3746Cv0UIHBZNJS0WBHKBBq9QI8Shg4PVhK7RaQ/h4QrXH?= =?iso-8859-1?Q?HFSf1STRnxW2UllmvjuWHs7ZMdYJg9RmEho5UIdyM3w8TfkUXUx2NTp8+n?= =?iso-8859-1?Q?aH5W0++rzFFw3AnCRpOgNnCZjO6QSZj3Gqw4jDkXLsxgUlM+3QPcHePond?= =?iso-8859-1?Q?dJJG/ik3SP6t1eXX53V530WHB9fboXrlTI3RMVeJwDZdg3c3talkFLWQUi?= =?iso-8859-1?Q?yvaAJvAsDIaGpd4nkHuOr1HtHtUs+zhWQ0CMt9eln+R6MQQVDUCY0mlCjy?= =?iso-8859-1?Q?iw2f44+Kl9+pnO1lRxkAVvjg8ygxj7jDqiQvYmzwaWCLlL8uI1wCM2QnKj?= =?iso-8859-1?Q?a7P+OlBRdqQVDRoO34oSgopenMj6aJ/6LS4+oNe6cMNVmadZhwhuiuXESa?= =?iso-8859-1?Q?3SL0D2bPa0efakaHIY2PVDcU8ThnuoF+KtRU05Yh3tLnxV6iCIYyzxrKxC?= =?iso-8859-1?Q?OcbdPlr9M2MwePLeZ4rve2Af3pgI4jVkqpt9MF9O2s7sZDN9Oy5EDc0mjh?= =?iso-8859-1?Q?ps5C8Ql6Wtul0rmP/6Cwfh+fuMA3U/PbRy8JnvuIeINmnKGH232t2tkpYt?= =?iso-8859-1?Q?TS3kj3hwruBCgbtLGg9Es5mjo+6uoEJudVRaikpLDSGrTyF/7yHKbJ0q4t?= =?iso-8859-1?Q?o0y1c9DSIBONfaFInhwMlnPUGKivsDwD3yRyrVMsIhSvVzIGpOUK9uooOS?= =?iso-8859-1?Q?v9Mtb+fITdJ7Rbd9DqOGCFGlZGVvczmCHdOj2p/RpCaXzMONsbrpRnrQ37?= =?iso-8859-1?Q?GtsjOX17I2aY+MUnAPD9HoAvy9iybDkXRU08j68JmXFIDkATb+UbDAkcgJ?= =?iso-8859-1?Q?tpzgQo3DpaK153YjYKV0NXwsfaEwrrWDUjk/fIu/ILZ+/isY/kvAv+iN2E?= =?iso-8859-1?Q?kdxUsAgsUrwcktaqDVIjnbUDE8+Xu7zxWJj9ZL4bcZ2ACVuUcFzAN7cvXa?= =?iso-8859-1?Q?0Qinx5aETuWUT0E6PoEQBhCHL1F2Xn/JuDUiGNL6u2WY+hQMZO1gpmhj+0?= =?iso-8859-1?Q?ITY48fzfvotOUnE3nXnhnuje3u0MTYQu0BOfQ7pgPTX7u4EWLy16ST0D4V?= =?iso-8859-1?Q?TtuHGSwroqmhEkUwSCPSnX+dN9QRcsBvWAtiEkrkVNyUngFwFBgA+y5wA2?= =?iso-8859-1?Q?y3Bv4pdMc+/4fHUoTuWwr5Q/oJncyHIJabu/IaCJ1pBeiAWlFq3lAxsGbG?= =?iso-8859-1?Q?noi9p0woPQHAwZnYYZY7E2WHIIyQMqB7YuwDL/knELYlY9OtPN3uxPJTV3?= =?iso-8859-1?Q?uIE1qkab+Fx5FHgqFAZdjlNR/Nm4e/4cW2GYzg2xssYK5utw+fn17nPD6T?= =?iso-8859-1?Q?QlyBPPTRwQLEJilkO32j6nvyLRCm0P0Z2e02K8WVMgSEjG9I4FdsCCQGnm?= =?iso-8859-1?Q?1d8a+UOGpFhDfC3DsVRMBIbVAzaFrqaMhvtEqFN7tK8E9uhXaD9gzbAF8t?= =?iso-8859-1?Q?DvSrZOq7mnyPsKVqKES/7efD7kXBc8hKfNoBv43CB9yRY+Qos59M7LmQEk?= =?iso-8859-1?Q?ZliUKnv8wULKeLWFZ4UI4ar0s1tlLCxFkNp3Pcl+5VarpNcOQXrkcsOrI7?= =?iso-8859-1?Q?jR47K6G7F0vEIZXGtr0z2V6fSuk9RaHydQ?= Content-Type: multipart/alternative; boundary="_000_DM6PR11MB386883AC7BD6860816270718A1EB9DM6PR11MB3868namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3868.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63699759-f5c1-4394-e27a-08dae319165d X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Dec 2022 06:03:31.5129 (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: WmHX0MxolA3KKKmP/n+LO3DSJBXEjDFtPXypdGoXiIqX3fc+aHshSIZBh6V4T/Y9m8K9OoK/U6BNiL+k1pR4VXyR9/tqYIeKBwXEEynbfX0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7719 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 --_000_DM6PR11MB386883AC7BD6860816270718A1EB9DM6PR11MB3868namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Jerin, Can you please provide your input/feedback for this patch set? -Harish ________________________________ From: Naga Harish K S V Sent: Tuesday, December 20, 2022 2:41 PM To: jerinj@marvell.com ; Carrillo, Erik G ; Gujjar, Abhinandan S Cc: dev@dpdk.org ; Jayatheerthan, Jay Subject: [PATCH v5 1/4] eventdev/eth_rx: change eventdev reconfig logic When rte_event_eth_rx_adapter_create() or rte_event_eth_rx_adapter_create_with_params() is used for creating adapter instance, eventdev is reconfigured with additional ``rte_event_dev_config::nb_event_ports`` parameter. This eventdev reconfig logic is enhanced to increment the ``rte_event_dev_config::nb_single_link_event_port_queues`` parameter if the adapter event port config is of type ``RTE_EVENT_PORT_CFG_SINGLE_LINK``. With this change the application no longer need to configure the eventdev with ``rte_event_dev_config::nb_single_link_event_port_queues`` parameter required for eth_rx adapter when the adapter is created using above mentioned apis. Signed-off-by: Naga Harish K S V Acked-by: Abhinandan Gujjar --- v2: * Fix build error v3: * update doxygen v5: * update doxygen as per review comments --- --- .../prog_guide/event_ethernet_rx_adapter.rst | 19 +++++++++++++++++++ lib/eventdev/rte_event_eth_rx_adapter.c | 3 +++ lib/eventdev/rte_event_eth_rx_adapter.h | 14 ++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/doc/guides/prog_guide/event_ethernet_rx_adapter.rst b/doc/guid= es/prog_guide/event_ethernet_rx_adapter.rst index 116c0a27c6..bbe278f7db 100644 --- a/doc/guides/prog_guide/event_ethernet_rx_adapter.rst +++ b/doc/guides/prog_guide/event_ethernet_rx_adapter.rst @@ -71,6 +71,25 @@ set to true. The function is passed the event device to = be associated with the adapter and port configuration for the adapter to setup an event port if the adapter needs to use a service function. +Event device configuration for service based adapter +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +When rte_event_eth_rx_adapter_create() or +rte_event_eth_rx_adapter_create_with_params() is used for creating +adapter instance, ``rte_event_dev_config::nb_event_ports`` is +automatically incremented and the event device is reconfigured with +the additional event port during service initialization. This event +device reconfigure logic also increments the +``rte_event_dev_config::nb_single_link_event_port_queues`` +parameter if the adapter event port config is of type +``RTE_EVENT_PORT_CFG_SINGLE_LINK``. + +Application no longer needs to account for the +``rte_event_dev_config::nb_event_ports`` and +``rte_event_dev_config::nb_single_link_event_port_queues`` +parameters required for eth Rx adapter in the event device configuration, +when the adapter is created using the above-mentioned APIs. + Adding Rx Queues to the Adapter Instance ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_eve= nt_eth_rx_adapter.c index cf7bbd4d69..34aa87379e 100644 --- a/lib/eventdev/rte_event_eth_rx_adapter.c +++ b/lib/eventdev/rte_event_eth_rx_adapter.c @@ -1532,6 +1532,9 @@ rxa_default_conf_cb(uint8_t id, uint8_t dev_id, rte_event_dev_stop(dev_id); port_id =3D dev_conf.nb_event_ports; dev_conf.nb_event_ports +=3D 1; + if (port_conf->event_port_cfg & RTE_EVENT_PORT_CFG_SINGLE_LINK) + dev_conf.nb_single_link_event_port_queues +=3D 1; + ret =3D rte_event_dev_configure(dev_id, &dev_conf); if (ret) { RTE_EDEV_LOG_ERR("failed to configure event dev %u\n", diff --git a/lib/eventdev/rte_event_eth_rx_adapter.h b/lib/eventdev/rte_eve= nt_eth_rx_adapter.h index d0e7d0092c..f4652f40e8 100644 --- a/lib/eventdev/rte_event_eth_rx_adapter.h +++ b/lib/eventdev/rte_event_eth_rx_adapter.h @@ -382,6 +382,20 @@ int rte_event_eth_rx_adapter_create_ext(uint8_t id, ui= nt8_t dev_id, * control in configuration of the service, it should use the * rte_event_eth_rx_adapter_create_ext() version. * + * When this API is used for creating adapter instance, + * ``rte_event_dev_config::nb_event_ports`` is automatically incremented, + * and event device is reconfigured with additional event port during serv= ice + * initialization. This event device reconfigure logic also increments the + * ``rte_event_dev_config::nb_single_link_event_port_queues`` + * parameter if the adapter event port config is of type + * ``RTE_EVENT_PORT_CFG_SINGLE_LINK``. + * + * Application no longer needs to account for + * ``rte_event_dev_config::nb_event_ports`` and + * ``rte_event_dev_config::nb_single_link_event_port_queues`` + * parameters required for eth Rx adapter in the event device configuratio= n + * when the adapter is created with this API. + * * @param id * The identifier of the ethernet Rx event adapter. * -- 2.25.1 --_000_DM6PR11MB386883AC7BD6860816270718A1EB9DM6PR11MB3868namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Jerin,
    Can you please provide your inpu= t/feedback for this patch set?

-Harish

From: Naga Harish K S V <= ;s.v.naga.harish.k@intel.com>
Sent: Tuesday, December 20, 2022 2:41 PM
To: jerinj@marvell.com <jerinj@marvell.com>; Carrillo, Erik G = <Erik.G.Carrillo@intel.com>; Gujjar, Abhinandan S <abhinandan.gujj= ar@intel.com>
Cc: dev@dpdk.org <dev@dpdk.org>; Jayatheerthan, Jay <jay.ja= yatheerthan@intel.com>
Subject: [PATCH v5 1/4] eventdev/eth_rx: change eventdev reconfig lo= gic
 
When rte_event_eth_rx_adapter_create() or
rte_event_eth_rx_adapter_create_with_params() is used for creating
adapter instance, eventdev is reconfigured with additional
``rte_event_dev_config::nb_event_ports`` parameter.

This eventdev reconfig logic is enhanced to increment the
``rte_event_dev_config::nb_single_link_event_port_queues``
parameter if the adapter event port config is of type
``RTE_EVENT_PORT_CFG_SINGLE_LINK``.

With this change the application no longer need to configure the
eventdev with ``rte_event_dev_config::nb_single_link_event_port_queues`` parameter required for eth_rx adapter when the adapter is created
using above mentioned apis.

Signed-off-by: Naga Harish K S V <s.v.naga.harish.k@intel.com>
Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
---
v2:
* Fix build error
v3:
* update doxygen
v5:
* update doxygen as per review comments
---
---
 .../prog_guide/event_ethernet_rx_adapter.rst  | 19 +++++++++++++= ++++++
 lib/eventdev/rte_event_eth_rx_adapter.c     =   |  3 +++
 lib/eventdev/rte_event_eth_rx_adapter.h     =   | 14 ++++++++++++++
 3 files changed, 36 insertions(+)

diff --git a/doc/guides/prog_guide/event_ethernet_rx_adapter.rst b/doc/guid= es/prog_guide/event_ethernet_rx_adapter.rst
index 116c0a27c6..bbe278f7db 100644
--- a/doc/guides/prog_guide/event_ethernet_rx_adapter.rst
+++ b/doc/guides/prog_guide/event_ethernet_rx_adapter.rst
@@ -71,6 +71,25 @@ set to true. The function is passed the event device to = be associated with
 the adapter and port configuration for the adapter to setup an event = port
 if the adapter needs to use a service function.
 
+Event device configuration for service based adapter
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+When rte_event_eth_rx_adapter_create() or
+rte_event_eth_rx_adapter_create_with_params() is used for creating
+adapter instance, ``rte_event_dev_config::nb_event_ports`` is
+automatically incremented and the event device is reconfigured with
+the additional event port during service initialization. This event
+device reconfigure logic also increments the
+``rte_event_dev_config::nb_single_link_event_port_queues``
+parameter if the adapter event port config is of type
+``RTE_EVENT_PORT_CFG_SINGLE_LINK``.
+
+Application no longer needs to account for the
+``rte_event_dev_config::nb_event_ports`` and
+``rte_event_dev_config::nb_single_link_event_port_queues``
+parameters required for eth Rx adapter in the event device configuration,<= br> +when the adapter is created using the above-mentioned APIs.
+
 Adding Rx Queues to the Adapter Instance
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_eve= nt_eth_rx_adapter.c
index cf7bbd4d69..34aa87379e 100644
--- a/lib/eventdev/rte_event_eth_rx_adapter.c
+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
@@ -1532,6 +1532,9 @@ rxa_default_conf_cb(uint8_t id, uint8_t dev_id,
            &nb= sp;    rte_event_dev_stop(dev_id);
         port_id =3D dev_conf.nb_ev= ent_ports;
         dev_conf.nb_event_ports += =3D 1;
+       if (port_conf->event_port_cfg &= ; RTE_EVENT_PORT_CFG_SINGLE_LINK)
+            &n= bsp;  dev_conf.nb_single_link_event_port_queues +=3D 1;
+
         ret =3D rte_event_dev_conf= igure(dev_id, &dev_conf);
         if (ret) {
            &nb= sp;    RTE_EDEV_LOG_ERR("failed to configure event dev = %u\n",
diff --git a/lib/eventdev/rte_event_eth_rx_adapter.h b/lib/eventdev/rte_eve= nt_eth_rx_adapter.h
index d0e7d0092c..f4652f40e8 100644
--- a/lib/eventdev/rte_event_eth_rx_adapter.h
+++ b/lib/eventdev/rte_event_eth_rx_adapter.h
@@ -382,6 +382,20 @@ int rte_event_eth_rx_adapter_create_ext(uint8_t id, ui= nt8_t dev_id,
  * control in configuration of the service, it should use the
  * rte_event_eth_rx_adapter_create_ext() version.
  *
+ * When this API is used for creating adapter instance,
+ * ``rte_event_dev_config::nb_event_ports`` is automatically incremented,<= br> + * and event device is reconfigured with additional event port during serv= ice
+ * initialization. This event device reconfigure logic also increments the=
+ * ``rte_event_dev_config::nb_single_link_event_port_queues``
+ * parameter if the adapter event port config is of type
+ * ``RTE_EVENT_PORT_CFG_SINGLE_LINK``.
+ *
+ * Application no longer needs to account for
+ * ``rte_event_dev_config::nb_event_ports`` and
+ * ``rte_event_dev_config::nb_single_link_event_port_queues``
+ * parameters required for eth Rx adapter in the event device configuratio= n
+ * when the adapter is created with this API.
+ *
  * @param id
  *  The identifier of the ethernet Rx event adapter.
  *
--
2.25.1

--_000_DM6PR11MB386883AC7BD6860816270718A1EB9DM6PR11MB3868namp_--