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 08092A0555; Fri, 3 Jun 2022 18:17:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9CC104021E; Fri, 3 Jun 2022 18:17:46 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 3FC6D40041 for ; Fri, 3 Jun 2022 18:17:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654273064; x=1685809064; h=from:to:subject:date:message-id:mime-version; bh=7IK5UjIGBJe+vXmNschn2XcrrUl24a++pviIg6sv6zw=; b=Tu96vRPvEAGWdwM6LlRAhCyPnorHugLSEkzlENAlFG6qLHGP435tQJHS HejIoWaC7FGKf/0mXWt5ChVoXuKVLRgtNPR3YZM9psiwmSfmMGzkqUdB8 +RFqs4eHAUnEVWmhX0rqVxTV2xRYl3reguX3iUYfVxuQJgWja+ywC/xwC jUcXX47Xp0lpiyNu2GIUgqmJ8bagA4HoWG31AyB+s1J+DT57q/0oxifKa gASbgHSyyJbR+FO1w5KKQoH4OMcDKE9zbrM+h/5uy0iWFI0G6mwSQUQLt aBeDS0JFLAIHMp/LCUOpsnl2fQQKuC54TSeMq8EB2YIODt4XJbDKLn+To A==; X-IronPort-AV: E=McAfee;i="6400,9594,10367"; a="256763778" X-IronPort-AV: E=Sophos;i="5.91,275,1647327600"; d="scan'208,217";a="256763778" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2022 09:17:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,275,1647327600"; d="scan'208,217";a="668509524" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by FMSMGA003.fm.intel.com with ESMTP; 03 Jun 2022 09:17:42 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) 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.2308.27; Fri, 3 Jun 2022 09:17:41 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Fri, 3 Jun 2022 09:17:41 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Fri, 3 Jun 2022 09:17:41 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.46) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Fri, 3 Jun 2022 09:17:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HBT6dZ6cWMFQrxiyC9yMXg7yg5QcaIIsOiuCi0NT6Ti+nFz/hsGJxxmpyQJFu3c4bMX2Sz17kwGWrEGSpDG90B6XPrjfK4n43Tj2zDW+Y6N+iNT3kCaUNxHIqBRnSWwvoeVuN1v6d7GUCN3lfvH2KF/d93IeIJGgGzcIhsFKYCJoEykvsDDIX9lDAMNHbj1ixW5Vf4N3AdBYQADI9DIIw3hHtdFJH8QCaplXHOaPMgjluBFBVUmGNFsDaNBuJFtPfygtrDbDdaLEyZ+P5c3yaztLjOchfF+aiYEoYKajWQAL8XUhuO2KDs6HuIMjrhQWqkA3OgbNa+fQ26gcY760aA== 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=+PGADQXbMG6GN35OEkDO/sks1N59O858w0xKaJ5rYAI=; b=LlutxhBM7X/4u/PotGVKhmT+Ew04Db+pxVUyzRHMzS79bYOkCsvbflp6B6/rEBSX0EHd9VbcN8BlGh6lALpQfQCA5aZhvQVOVzyQ5O9PQeZD9wExOxOkG0jdMSFM79zWjYI5BD0fBVbkn+A71ZMSmBk3hhv3oUbhwvNikA79dKv843C1ZHkE5VFkHUVLmD8+F2+UkxyDAv+1k4HAFxf10Fs+nBHBeg/WLBBafcorz6ZFp5dYPC0pi+kfHGynvNH4dKyfadz7mY5Oz9rArMvaeitZJxw3wEW1kNT5HaDAol8b5mc1mLycfZgR+HFV3JlBYXh9l4cteNm8oqo5FdSOTA== 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 MW4PR11MB5911.namprd11.prod.outlook.com (2603:10b6:303:16b::16) by BN6PR11MB4019.namprd11.prod.outlook.com (2603:10b6:405:78::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Fri, 3 Jun 2022 16:17:38 +0000 Received: from MW4PR11MB5911.namprd11.prod.outlook.com ([fe80::b1bd:b32e:cfb4:2e3]) by MW4PR11MB5911.namprd11.prod.outlook.com ([fe80::b1bd:b32e:cfb4:2e3%6]) with mapi id 15.20.5314.013; Fri, 3 Jun 2022 16:17:38 +0000 From: "Kundapura, Ganapati" To: "dev@dpdk.org" , "jerinj@marvell.com" , "Jayatheerthan, Jay" Subject: RFC: adapter instance get api proposal Thread-Topic: RFC: adapter instance get api proposal Thread-Index: Adh3ZFVaVrTwwNGAQ66EB4VlfuPG6g== Date: Fri, 3 Jun 2022 16:17:38 +0000 Message-ID: Accept-Language: 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.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a489f6c3-e523-481e-e22a-08da457c93bf x-ms-traffictypediagnostic: BN6PR11MB4019:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZSdRNdmktCp6wwbspmpO/1HSKzqPHLqNfxW1SM7Go4sNe3D+hefCwqYenS90jxLtn8P0wXZfiZ8dOuZ7ix5iEqRJzmWvr3gFkfh+ediDySPhF/QEfM09IuRaT5ydo4IO3nhxQDdM+lzvxzXyBVjPVx08cxA6Ao8G16oXk83kZCupV4rRhPc3O5qA35zfWdCWCa3eD3+jikY8F0kz81+bHeHbhJdW/SZqkXCBRIPyAwHMRKjV9NXzvH/0VTvfmRatjtTVD2m29nxcJVIJxdfQ2Rri+84w4/EOuF38R3tF84f2YL/iI8hLKblcxhrDZb0S+Q9J3nNAmefSmeowPleKYKh5axgsi5rMGqfYNL+PIXz6+WF+ssKTGC7fGnbPTz1WhC1wC8RHojHVJFlExkoMhjB11d+NmBTnSHXomuJm/uqRzb++QsrABeovU4Q9FvpU1XLPJEBI1KNriRGd+aXLeCyTloc0d1rqsnTlC5xkWysv247NE0TwGOzmP2ug62leXvP3d+28whkL5KttlCeQG7XmGVaF/x8VcTId+NNavHAUdHDPQ48YedPxD69vN9efFJ/KlxMFZxWA+UZBqjGFTk1tf3ZNgP89wcg0PNh0Nq4E+Hx2psT0x6TBtk/iggqKzySNCq8EEXvKHbYKez/ad1rYZxM3KjveWp+xsCAVYXiYs1U3GCEZIgwTHBt3G6xa1M2RmU3Bb0FFDs0r9BDv2w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5911.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6636002)(76116006)(55016003)(71200400001)(8676002)(66946007)(508600001)(86362001)(66476007)(7696005)(4744005)(6506007)(38070700005)(64756008)(33656002)(66556008)(82960400001)(2906002)(122000001)(55236004)(5660300002)(8936002)(110136005)(66446008)(38100700002)(52536014)(316002)(186003)(26005)(9686003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8tHoYd+sIQ1lZlLmjkKsOfWymxkp4nwNEre79wDKk5/QqHEdJXMQcBPJcwjS?= =?us-ascii?Q?KdYCEpWzZdOZ0RwFriJmoJoin59n9bhjhHctERZLXl0ejjFDRMBTyUYTl9vb?= =?us-ascii?Q?yy3Wx2b9j+EEP9XmffEVhmpviBfhNvg2PinLm47u2QqA4dO2XIZOh4OtLgS9?= =?us-ascii?Q?rKdX8xfLK7FATZGFCtxbzZW3EyswSRaoOOVzwpJIwNpu6xw4jt5uB6nm7CzO?= =?us-ascii?Q?qBydUgZNEb2VQzIO6F384BRaGRJK2jpsCLC8ox9ABF6xJRdN9qXcjNP9AU09?= =?us-ascii?Q?08g+eLzybgWRzU6x4kd4+YsnZ9qHoeTm+AQet8puq/F4PYQecGVl7NEXZKXm?= =?us-ascii?Q?U4sc6XFE/KVgv/OKN9bT//nuEMt2o6ETI/+9DbvNazK1aYmNMSX5D9cqJiO8?= =?us-ascii?Q?qq98FjYr0xMQtS7NHzyF7Oo70CF1omkRlyFYoNue7lSE/pgBby9gkEjFEIYk?= =?us-ascii?Q?uCXDt8lI7h2a+c3zjlaxbxwErQ+ftcNV2suub17LimRl+3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xQM1swl3CJkNh7q06GC+47f/rpcccFC4D0AC2Ko2JZJvx1Z0?= =?us-ascii?Q?WJbR2GJJBZ4mroJwMrE8E4GWh4OaVD7OW3MfqYksUmHN0xAaNj+3GhtID1L3?= =?us-ascii?Q?rSNL2zrcGnkG6NXOU18w1MpaB+/jHi/lAHxEbbmtXNQEyqFM0rRK2QreS9PK?= =?us-ascii?Q?NaXp6xfHrAdHEOmDxsJA2rnATnrt6Bnx7DdMAL7DvDY8+2QRXCJNt+4ExAlF?= =?us-ascii?Q?SpekXTlPWFn72DZbjVKUeTOGcjSpkYoSzrZrgOPeBhq7k3fGSvP55u8rQ2Qw?= =?us-ascii?Q?QmmqLPzJvb0hRMH6z6rGUYA6pHztHYBww4tZbj1l1JERd91mkK+5HE+LuF/q?= =?us-ascii?Q?IDWCsj0ERLrpRGbeITjJADo8C6tlc3w=3D?= Content-Type: multipart/alternative; boundary="_000_MW4PR11MB5911BEECAD60217A0A8473F587A19MW4PR11MB5911namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5911.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a489f6c3-e523-481e-e22a-08da457c93bf X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2022 16:17:38.3121 (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: UZmzER5TZqOwSlaaCupMlPU8R9rD/+U8gkhrl34Pv1QMXtlr8/fAsjaViChKLW0RyT4qXgWRhbqevjXu4kiUScznJBkIl8vtAGkV5VUmP70= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB4019 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_MW4PR11MB5911BEECAD60217A0A8473F587A19MW4PR11MB5911namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi dpdk-dev, I would like to submit adapter instance get api to retrieve the Rx/Tx ad= apter instance id for for a Rx/Tx queue int rte_event_eth_rx_adapter_queue_instance_get(uint16_t eth_dev_id, uint16_t rx_queue_id, uint8_t *= instance_id) and int rte_event_eth_tx_adapter_queue_instance_get(uint16_t eth_dev_id, uint16_t tx_queue_id, uint8_t *= instance_id) When application creates multiple adapter instances and adds queues to diff= erent adapter instances, It's difficult to maintain which queue belongs to which adapter instance. With this api, application need not manage the instance id's for the queues= . It can query the Instance id for the specified queue. I look forward feedback on this proposal to submit patch for the review. Thanks, Ganapati --_000_MW4PR11MB5911BEECAD60217A0A8473F587A19MW4PR11MB5911namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi dpdk-dev,

   I would like to submit adapter instance= get api to retrieve the Rx/Tx adapter instance id for for a Rx/Tx queue

 

int

rte_event_eth_rx_adapter_queue_instance_get(uint16_t= eth_dev_id,

        &nbs= p;             =             &nb= sp;         uint16_t rx_queue_= id, uint8_t *instance_id)

 

and

 

int

rte_event_eth_tx_adapter_queue_instance_get(uint16_t= eth_dev_id,

        &nbs= p;            &= nbsp;           &nbs= p;          uint16_t tx_queue_= id, uint8_t *instance_id)

 

When application creates multiple adapter instances = and adds queues to different adapter instances,

It’s difficult to maintain which queue belongs= to which adapter instance.

 

With this api, application need not manage the insta= nce id’s for the queues.  It can query the

Instance id for the specified queue.

 

I look forward feedback on this proposal to submit p= atch for the review.

 

Thanks,

Ganapati

--_000_MW4PR11MB5911BEECAD60217A0A8473F587A19MW4PR11MB5911namp_--