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 72825433D8; Mon, 11 Dec 2023 11:23:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FBBF40E0F; Mon, 11 Dec 2023 11:23:53 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id EC864402E9 for ; Mon, 11 Dec 2023 11:23:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702290231; x=1733826231; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=c/OioGbVua4R2n80tjgBAahdSb1jJA0nElMOa/e6l0M=; b=BeuciBDxKjzZhLC0zAtCGzjodnV/E+BupTKR7qPDpl+6n5LJjSpkQ7TD bRdJL3u+c9a50xvALJZE7CbjkfXNHfOyatT188YbhQatD07ycjowHS+Tu udFW+MBt1Kn/w56hjg07GAkMHzdBJl0zIqrPEmNjh60h6VLs5UUfhLK6I X1Ut07GVEjnrxoLb/cNAlNLyvjmcnF/n5ygNdmR7ixmefppFShZTfiOM1 kLrSB7N0wW9j5WawESYEpmMZWLsZlz2hsMXX2CGn8ZQ1mFtwNuz9Ji7Tx 5nwkurptnPi143KGpinY61DUtZ+roJqglUkmCkbFAoaRpSg19j2d1MXQF w==; X-IronPort-AV: E=McAfee;i="6600,9927,10920"; a="16177181" X-IronPort-AV: E=Sophos;i="6.04,267,1695711600"; d="scan'208";a="16177181" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2023 02:23:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10920"; a="863711630" X-IronPort-AV: E=Sophos;i="6.04,267,1695711600"; d="scan'208";a="863711630" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by FMSMGA003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 11 Dec 2023 02:23:49 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.35; Mon, 11 Dec 2023 02:23:48 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.35; Mon, 11 Dec 2023 02:23:48 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 11 Dec 2023 02:23:48 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 11 Dec 2023 02:23:46 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RW8HS55gwOkqHiJQRgyqQr2vTeO1HdgBI7zmffKGqeWv4Iwynq5/j2k8UbF1qu+dVXM+x9d/eW/i0iCu35yU4YqMC5rNZvkUqqHKTB7Ec+wOjVnJXdZPbZi6yOarT9ZV4sxkZpP6f74qblXcVEqA+jAoy9NZH74Po/s83RAr8RXUKh3KAXtXNqj9cb0Aw8qxIxse6jjQYTsfYcdcFeIzYqbYOlFu3O5rfXjzAZCpjOvgLpUHRx8cnxSyJF4cI59zXtqK33Eh9e18EzLDS/4OTckF9Ydj1hlN8wUkD9MVNEjwJoNvqHheuXLcDjj0csNzyAOEDBAIF5Dn3tEy8JT6Pw== 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=C6CtJfQipOXWMG+dSlxxJsHI5yo/hKtD4cKc1u0YsEI=; b=ZMDX1R8l/KLyKJRT3ODKpZZZpBMMDKTcjkWOnUA5KYK0wETGewuqj2n9Mk+BXmCJo+rasgIFlWzlOL3cT1/ZHN3nnm5E5Nfazq1Lfhl40kq4d6KsOu3NTK43Wki9p11BKOcYQDp+Ukb0K59V+42D2dIHEmB8HLa713m6zpr4zondgDBomUUicDRMO+sIByFr84Gf2YVwbj6Ua+6Z8vKafp1ctLbeih77kuyfPK7PA2o5fSPNCfvem5oF2eRuzguBzYlMRzrxvyfEL0C3mVkcDzye/IATcWwpPDaEvyjWEwLNcF3mitjAWLdjZOhOXQ9HjPXgvBL5A1J996B5yxOCwQ== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by BL1PR11MB5223.namprd11.prod.outlook.com (2603:10b6:208:31a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.33; Mon, 11 Dec 2023 10:23:43 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::4782:d54a:209d:cb49]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::4782:d54a:209d:cb49%7]) with mapi id 15.20.7068.033; Mon, 11 Dec 2023 10:23:43 +0000 Date: Mon, 11 Dec 2023 10:23:38 +0000 From: Bruce Richardson To: Amit Prakash Shukla CC: Chengwen Feng , Kevin Laatz , , , , , , Subject: Re: [PATCH] lib/dmadev: get DMA device using device ID Message-ID: References: <20231208075526.2696553-1-amitprakashs@marvell.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231208075526.2696553-1-amitprakashs@marvell.com> X-ClientProxiedBy: DU7PR01CA0044.eurprd01.prod.exchangelabs.com (2603:10a6:10:50e::28) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|BL1PR11MB5223:EE_ X-MS-Office365-Filtering-Correlation-Id: 4ca398d0-7ae5-4a37-824c-08dbfa33407e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Vp6tGI0HZgI3YkrRWXlt0N0S4IBo82/zzvUhhlhGMUhD9P9zAsbktjVQCkFNq8pmPPUTbvsiFKq1pSJS//10G982f3FeAXu8x3q/V3IhPZUuC+ylrG6nypU8UrTYNRQbFlWCjvi7HrqttSqvF9K9QbsckYDq8umLq3V8UXrGDK7QgA8bSwUgu2i0EIl5Ck+Q805cn2498qTRK+/XzLIErdsMVA8wf2+mIsrLCPtuSs6tr8Z4MLsLWjT/PB2Bn82nf303d179XKiL5/XB63ZZmjFPVGx2sb4slj/iW+YnHHqmylWL+ekeFTS5ymF73I7n6EWrpZfcqj3GGseknS4IXwcU+eaYqiTGbdAZ5vs8kUiTzdCxu/aV14SOXNmupIgbEfrch70QVyipHK+QWftuytfoadiDZWhs7DYu5KWlbhzIWZ3OS5TaCzhzD+d4jPV9IoQJgMGfMxOsE3hwVlooMV4/vyTkugWDLMBRSa+y0Zaf/n07PW5+PlUx91awh4Gp9mAyWSpH5R7U52Ynh2bH2cdM4RinMEhrTssy9B/YLBdc47Hwm8FnlbyLwVVEdDAo X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(376002)(136003)(366004)(396003)(346002)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(4744005)(2906002)(41300700001)(38100700002)(86362001)(82960400001)(6512007)(26005)(478600001)(6666004)(6506007)(6486002)(4326008)(5660300002)(44832011)(316002)(6916009)(66556008)(66476007)(54906003)(66946007)(8936002)(8676002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?YYX+GUAxZGzPb+gvlKZK47UlYljiDVjJ210JRWvTl+kE3TuwxdPu0mtdsVPY?= =?us-ascii?Q?wAJWwhQ9clWO1x7gUplE1RMe15XyCp7sPSKmwhaND1xhxOhkqlZP99b6T7xH?= =?us-ascii?Q?pcoMgZHLMauMkgqhwt0BXa5bMMd2lkfC/NWZYcu/Oa28BXgES+4j12nuF/Mz?= =?us-ascii?Q?IaZTjAOBJOCwM806xj7oq1RD+hEvteudkXRCUu43aGv2QIVC2gRJhxPlAun6?= =?us-ascii?Q?52BP71MG102IcewEqUJtjFPdWf75y/FTIIcCaNgKN2v7i0NQSEf8M6XKmO6X?= =?us-ascii?Q?5vJ3njHkpb2gbbCRTfH/mTe4OWYJSHRBa4+F4SBmcc4q6LgPD0aFhTuiUGms?= =?us-ascii?Q?1Fu70Ba5L+57uJOSkfPUKQ+agWNlh9Fs9gOgAd1MaeLX0GBTcaz/X+u4vAQS?= =?us-ascii?Q?xjeeCENqY7bG5LH3O2P7mbm78+Lo9uyIWBw24ooTjoMqA6fwQOVOlAAY8ITi?= =?us-ascii?Q?CiYht3jG9Ghye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=?us-ascii?Q?LmLP354piCvVuxBDGxrWgnqzc3KMhsas0SRXwhCg7ZRViEcnM68Cd7Vmi9dY?= =?us-ascii?Q?Z3TfZLcRucwJbJIlq/0UHidj39Njrd0eQeJI4qZERph/UPZUiw1uF26AN/Sj?= =?us-ascii?Q?oZqn58LxYX83OR2dkzcHMBGBetokn4LzuJXN5AC412keMH9DtxZJQllrWLuk?= =?us-ascii?Q?E41sVzsbXkWhjkHKjrNufprNgKYNqhziKKLrw+zrHnapdt7wkT5NMhAZvssG?= =?us-ascii?Q?+w=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 4ca398d0-7ae5-4a37-824c-08dbfa33407e X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 10:23:43.6730 (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: MQlhX8bjFOF72hfoa52te44v2+O3hdm+knf69C0GTlZpauqEcNdmrYKWIDh05X2IX568z1lIPcsjF7NrqlybUmoQNr36tLvYmQzBBEF1YsA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5223 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 On Fri, Dec 08, 2023 at 01:25:25PM +0530, Amit Prakash Shukla wrote: > DMA library has a function to get DMA device based on device name but > there is no function to get DMA device using device id. > > Added a function that lookup for the dma device using device id and > returns the pointer to the same. > > Signed-off-by: Amit Prakash Shukla > --- > lib/dmadev/rte_dmadev.c | 9 +++++++++ > lib/dmadev/rte_dmadev_pmd.h | 14 ++++++++++++++ > lib/dmadev/version.map | 1 + > 3 files changed, 24 insertions(+) > What is the use-case for these functions? With the dmadev library abstraction, other libs and apps should never need a pointer to an dmadev struct.