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 EAF0FA0548; Fri, 24 Sep 2021 17:58:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CD6741333; Fri, 24 Sep 2021 17:58:44 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id CC2FA41333 for ; Fri, 24 Sep 2021 17:58:42 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10116"; a="203597368" X-IronPort-AV: E=Sophos;i="5.85,320,1624345200"; d="scan'208";a="203597368" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2021 08:58:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,320,1624345200"; d="scan'208";a="535627336" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga004.fm.intel.com with ESMTP; 24 Sep 2021 08:58:30 -0700 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.2242.12; Fri, 24 Sep 2021 08:58:30 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.2242.12 via Frontend Transport; Fri, 24 Sep 2021 08:58:30 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) 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.2242.12; Fri, 24 Sep 2021 08:58:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZkgEfJIhGCUV2RmdP5f5X58YnrEmHB7EODltbk3hpYgAxnskCTuY0TX4D4TxJDm4LYUKdeYBOtgMl2VV19kyppGsKTiYoA4hZMS9Mb3RSH2tMo2infYKhtyGA+hs3B6polZ/SA+r//YH5iyCuvgW7IwXvEuEZN/TeJBFDNYnlSsIkNUXD6gym0gXRxmKBCCzK2oVtY1A1BW5qFdObGzOPfIZahOS1gXvcOZ1xe6mdeWIO7LMQho52CGLbFafLWcq1Zjlvv7tGpCyKSpfOdOOVcAU6E5kKN1WYDrxqeB6BKZPQK1VyDvqMg5jFGMfc4rW3SEBFy9Kli9yqWmVH1ve/Q== 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; bh=MyPUbXHswdGOppf/+1Q8udTXOGflBtA/oHNDPRhHkhE=; b=MhKnOR0sq9P4h54DYRpCLGij0q0GqAh4OosrDXhV2dIddZ1BD8+ZUOtLlnIUvvtrpn2YtK22A+/5mfTL8j1D7bp9Z19hL28s5oCTSn/wOIMg0gmolDvBE0F9Ii3M9nLK28bMQt0uEopQlt+Buw0Y5kFtjAWBNmwsBnEEj1att35yLyJg4PfJbuCZ9OIFTiwZH0FkAJTEiMkI+P9fm+FFBv/utkTM8wy2PAKKJvM7yInUdJDa3Uqxg/K8uY5xvbjIQlW2Q9PCMLF41I5KBAXNAk5vuZIHnp+FpNbuud6J8ghdp7l+2aGeuw+7dl/0fpJj2X2gLAns53+UWOmD86r8yw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MyPUbXHswdGOppf/+1Q8udTXOGflBtA/oHNDPRhHkhE=; b=tak5sKjaZSoFiZVRIVhQBGTQeLIbco3/D55mXC4njhh6AQ/T9CYeh14cCq1vJHQ2sHgWd81HZpSOSOziWebiQupLvl0IPCPS+RHlYe96plhGg5rWxhRMIl5YyhDet9XrUiO7hQ/g66IbtILH7N2dXyETubzF8nnbF7NkyUEEHYI= Authentication-Results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=intel.com; Received: from SJ0PR11MB5055.namprd11.prod.outlook.com (2603:10b6:a03:2d9::10) by BY5PR11MB3862.namprd11.prod.outlook.com (2603:10b6:a03:182::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.18; Fri, 24 Sep 2021 15:58:25 +0000 Received: from SJ0PR11MB5055.namprd11.prod.outlook.com ([fe80::78d4:6f82:aa87:c271]) by SJ0PR11MB5055.namprd11.prod.outlook.com ([fe80::78d4:6f82:aa87:c271%7]) with mapi id 15.20.4523.018; Fri, 24 Sep 2021 15:58:25 +0000 To: Bruce Richardson , CC: , , References: <20210826183301.333442-1-bruce.richardson@intel.com> <20210924102942.2878051-1-bruce.richardson@intel.com> <20210924102942.2878051-6-bruce.richardson@intel.com> From: Kevin Laatz Message-ID: Date: Fri, 24 Sep 2021 16:58:19 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: <20210924102942.2878051-6-bruce.richardson@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-ClientProxiedBy: DU2PR04CA0309.eurprd04.prod.outlook.com (2603:10a6:10:2b5::14) To SJ0PR11MB5055.namprd11.prod.outlook.com (2603:10b6:a03:2d9::10) MIME-Version: 1.0 Received: from [192.168.1.15] (109.78.133.43) by DU2PR04CA0309.eurprd04.prod.outlook.com (2603:10a6:10:2b5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.17 via Frontend Transport; Fri, 24 Sep 2021 15:58:24 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a2c1f850-89a4-4847-b6cc-08d97f74245c X-MS-TrafficTypeDiagnostic: BY5PR11MB3862: X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:361; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yy06kunEUHjEesRmssZ/x6aL1VVxR2dI8dcazeEDA7D18iG/g3LsYPEL3BCUvRxXVdm23Q3kN75zXG3Yl5Pqh2u29XGh8bBDfv7S/0UZbKboS8/T2Pp87KVqaZ8UmoH1FgWzJVRye1a7K4p8n0q2g7nqRSIKLE2MTIEufap/7ZB/BOL07QPhwFtKMT/bLLfgeROWYq0XwDq3HYunTr8STq9+uLSKAxjRp7r7yZuhGw3B6DaDkRm3JMcprl4ikjpbWt7XcsJ2Hb8yDM1kI6Qqkqzo2o/E/4qykWchMJsJF3qsvtymXN+6s1pDQk6z3q63q+1Wa+J9Nyc8ZZz9w0MnBvHUfyFVKoDdMDLditTOkAdYjIGWMFgyFox/ntpPvoHaESspHEC3Yh44YqCwYVgBWliNYFnhoXhoKoGDjDmbjGwBrIqlx6wzBd2+ABH6eUPhRJNzlcW5jQCqeOvMq0OaDKWmJaGXsbFLEnaCLv4zs/r9zqnauQH5eEIrudnU25XL2QjP9lnxK7qzcp0ve360aN7j4RYORlFejNjdQ+pdx4Rfysm5xoGgdrWmroRNMTd4Yaaa6zgn1KA/GnIPoNGDgT1L+Z8NUvZIuXFPg2rV//Io545MSiDAnz1Q2iKVaHpmZcXBYPZYt5TtDyedX1WKFD7GEN42OV+//ePZs6raM1XP+dlnyX6SC3ajdWFgTPtFRDPVABoQFhCYLxArSzOZLmygMLUCQUwrDPXhwu6oOIU= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR11MB5055.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(6486002)(53546011)(44832011)(508600001)(6666004)(31686004)(66946007)(26005)(66476007)(66556008)(8676002)(36756003)(186003)(31696002)(8936002)(956004)(4326008)(2616005)(316002)(16576012)(2906002)(38100700002)(5660300002)(86362001)(4744005)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SEFOT3hxNEhmeStTcis3VURSRnF4dm42WVNZL3RNVmZZcFVXdmdGN3BjUHAv?= =?utf-8?B?WTNXOWdhdGNIVlJ1aFJvNld3MElRM3M4QXdNcGJsU3FiczNUdXVhVkVQUTBt?= =?utf-8?B?MXduRzFwdWRDdDZqR3poZVVuNUpNTW56RCtEMklhTzhVSGNLRGhtalJJMER4?= =?utf-8?B?aUhMaE1qV3M0cm8xTUxCTEluUzZVSFJxZUpQQ3NiNVdyVHBEU2ZYbUUvQ0Fn?= =?utf-8?B?R05JWjBDNG1XbUluak5vOGRBT1lRSWErQ1oxc3ppR2VIUjlMaEFpd3ZzR0J2?= =?utf-8?B?M2szNmJ0d2FwK3haWTVsVnhGQWRFNm1hL0xOeGM0UDJNbS9QaC9VNlBndXRC?= =?utf-8?B?ZEYwTzJQWGpDZUdja25qcWRVYkhQNXYwaG1kR1ZxaW1JblJlckZhN0xGeUFs?= =?utf-8?B?azVKYXB5UlU2aE5kWnpwSW8yM1dFL3ovUmhIb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nNWSWRWWE5FNVFhaTdya2VDZkVhZU9h?= =?utf-8?B?eEN2aVQwOHV0WWdkQStZS3lRamxjU1NYUmF0VkZBYml3Mk9uRmZJa0U1UzN1?= =?utf-8?B?NVFGc0RsZ244dVgwMHJyalZqVU9YdUs4am1GaEZoK3EwWkJ4YTVXOVo2Y1V2?= =?utf-8?B?aHlSdTlFb014SmNvZzNpR0FQc1FlTzFNdk5jMWNwOFNBcUl5RWc3T3VVMnlO?= =?utf-8?B?eVROa0NoN0dHNmhMSGVjdTVoNlNialMyeklUbW9OSUQ1Vnd4K0NwbmsrK2Vj?= =?utf-8?B?akdjSEJLWDY0Ym16UGVHR0cvNXRJak5VcUZiRGNQWjJENHEyMk44b2ljNTFQ?= =?utf-8?B?Z0VUWDNmVmxScnpsTGJGODZBbW1OdzAyN3hwYlVUZmk3dFRRMy9STXZUMFMw?= =?utf-8?Q?bNnbyKIl+vPjwYmgGx+eksvRFkfZ6lgEOy+IB21?= X-MS-Exchange-CrossTenant-Network-Message-Id: a2c1f850-89a4-4847-b6cc-08d97f74245c X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5055.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2021 15:58:25.3710 (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: HSpOXXDHUE+oeM+zaBHMr7LwmdI1UTvfOKe/tNBvmAt5EXBMSy0mQRQEZi+Xyj6IUXNMsRnMPvAWVgpZBR48ew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB3862 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v6 05/13] dmadev: add device iterator 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 Sender: "dev" On 24/09/2021 11:29, Bruce Richardson wrote: > Add a function and wrapper macro to iterate over all dma devices. > > Signed-off-by: Bruce Richardson > --- > lib/dmadev/rte_dmadev.c | 13 +++++++++++++ > lib/dmadev/rte_dmadev.h | 18 ++++++++++++++++++ > lib/dmadev/version.map | 1 + > 3 files changed, 32 insertions(+) > Reviewed-by: Kevin Laatz