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 BA289A0C47; Tue, 12 Oct 2021 17:10:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 51B634118A; Tue, 12 Oct 2021 17:10:30 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id C14034113A for ; Tue, 12 Oct 2021 17:10:27 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10135"; a="313372971" X-IronPort-AV: E=Sophos;i="5.85,367,1624345200"; d="scan'208";a="313372971" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2021 08:10:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,367,1624345200"; d="scan'208";a="441905860" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga003.jf.intel.com with ESMTP; 12 Oct 2021 08:10:10 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) 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.2242.12; Tue, 12 Oct 2021 08:10:05 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 12 Oct 2021 08:09:53 -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.2242.12 via Frontend Transport; Tue, 12 Oct 2021 08:09:53 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.43) 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.2242.12; Tue, 12 Oct 2021 08:09:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ob9J8ix0DqAs+L2daGCVqwt8Tm0BRmZJmplsLdTbB/eVPsNCT5PGl5LcwwexX00Gui1AhiTY4g3Ui6Ewi+rhHmppuoDsVn082NTee8ATuRjFbqCl2+V7fG30iJU6TDY1tjgQrk9RpBPP4RKNvW09Wwm5ZlVBvAJeniC7clpkpI47YzXMzw6qhHrgBM4XGlD1teo+oFyJetHIPcR9f0+klkdO0OF0bG/6iArwFsPFvG5F5AKhpijcAMPd1gqeSPfcsxGdJgRShiDs2Woe/eVRfdW/Q/RGVijXiIdxpZ5MdrjOseUcRSiQ/jdLREEHTzJU1HP8QnLb1swqREKjxIS8Ew== 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=T8Hu22h4sNVbaI5I/RySP8+bvW5fQ8GYknkUnFbK9zg=; b=gV0AYhiRnzJRYIQe1mbVcfjyM0rwbu53bTMzFMX6/HZ84DQYql0mzJs3t7+o+wZ1xsmaNosxgsfe7FckNmX8tI5/x3HpzzoZZEUAfKQcARQ0fXZ+D7snHheXpnAfGTDINiGlnYIn0KyXoWyK0N86RmLQfe435qK+DIeyxR+bnI9C1TEZ+cKNlTfj++jFmHKmvM5E6j79eYJuc6YHbpQhmcjVBA1csbQ/HTBcG6CXhGIwiynAlkLt5kTOHxbtQ1bBReSruOwzw3S22UD+psrzT5ci5NGpYZhj92lAuYv/1FyAefHbJ5dtpFl9BFK0Tc8B/nV5ulaeh3u5RhuyEHnQIw== 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=T8Hu22h4sNVbaI5I/RySP8+bvW5fQ8GYknkUnFbK9zg=; b=ltrEp9dB3LSrZbRzEj0MO+n5O/uGRgErGLHzJnT2a3QQ91TzKK4zan2sltyZ2VH8sv6YOjt2opYD7sWRB/RlSbvAnBlPRbbifaQau2vkxxutRTgKRuj+tmSaouTNIUHxHioUjJiNImZwmk52ofDQS9p6VCpbXyKQTyokD0uIsL0= Authentication-Results: oktetlabs.ru; dkim=none (message not signed) header.d=none;oktetlabs.ru; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB4838.namprd11.prod.outlook.com (2603:10b6:510:40::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18; Tue, 12 Oct 2021 15:09:14 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c%5]) with mapi id 15.20.4587.026; Tue, 12 Oct 2021 15:09:13 +0000 Message-ID: Date: Tue, 12 Oct 2021 16:09:05 +0100 Content-Language: en-US To: Andrew Rybchenko , Ajit Khaparde , Somnath Kotur , John Daley , Hyong Youb Kim , "Beilei Xing" , Qiming Yang , Qi Zhang , Haiyue Wang , Matan Azrad , Viacheslav Ovsiienko , "Thomas Monjalon" CC: , Viacheslav Galaktionov , Xueming Li References: <20210712161747.958019-1-andrew.rybchenko@oktetlabs.ru> <20211011125307.7632-1-andrew.rybchenko@oktetlabs.ru> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20211011125307.7632-1-andrew.rybchenko@oktetlabs.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB6P18901CA0006.EURP189.PROD.OUTLOOK.COM (2603:10a6:4:16::16) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DB6P18901CA0006.EURP189.PROD.OUTLOOK.COM (2603:10a6:4:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.24 via Frontend Transport; Tue, 12 Oct 2021 15:09:10 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8f5fce71-e866-4b96-efb4-08d98d923ff3 X-MS-TrafficTypeDiagnostic: PH0PR11MB4838: 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:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jqyGZVfawK2mpJrlb8Xslxm3x5QUru1Nl8LIdarrb4Db1GuB0GoF8Aks9HKKKyxMO9Uf8jI5AG4Y8PWwezRbqMxdRaGcm3ndB2BFMHuSH6DucUBz2dyO2Al1uEpdWg9BaylE3laSRk6Y8tKjbH+OMe0oU8fd5X0voFhh0r8a0UHaHoEmMYZm0Dv/IeApYL5GuJld8LnW3vHkgndviqKtOD0r2Wu+6+ACuA8D04dYcrj2wWk/9xd3VQlUDZyT02lgoIwVOWCWFS53f5hQfKUkjCElbe7Q2/Lyv40LqoIiz1QRP3UOgqQNFW1d+h26kIZWULnbnmKDZcUbCoLL8MRY8K1mfqjeTZI/Z64HJuBiJZVjVs7mrlBCXWE0vrPFQ+Zjftsq3qi9YWtBxrR3fJdOtSlUCzLNwWNL7xF4Jd8pvNrKDulh/3wiBXm6KexaVPpM8Gpoz/1kU756093Q+4VL5xVV8bk3HSFX0CTZBXDkDGrhQkXJBuWX3AufJa2aON6qWXnG93nPwupkCZKp94dW72Zpd5PBtUNqTEphKqrzXffCgp79NiTKlP9G45zXkUL7L+M6d14pbpyb8OKC2PYPHPJ2v5wUycESyrjWPr4HW5Cfc7QZXxfz+VqLfX/wgzFcc+/6XQ6Y0ClJjj1hs2tw8TTw3JdjGklzsFpjCE5G2B+XD1pb9i5+q3H43ZdeDGC7fxwVCY7vrqnKxf/nIb+iORjH0sS8CMIj6iaFzPvUfAo= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(44832011)(86362001)(110136005)(508600001)(54906003)(66946007)(921005)(36756003)(6486002)(8676002)(7416002)(8936002)(66476007)(16576012)(2616005)(31686004)(316002)(31696002)(2906002)(66556008)(186003)(26005)(5660300002)(956004)(38100700002)(6666004)(4326008)(53546011)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MG51aVgxbExPMm9xWlBQNkpWT0tXZzF6SHFPczI4eXNvRnlVRjRwTlNaU3Iw?= =?utf-8?B?cCttQkJkc0I5MjVqOUQ1N0d6UmtSUHRxd1RENmxBTHdxODNreTNOenUrNVRi?= =?utf-8?B?L1Q2OUNCMFZQM21qVlZ6S09KeDZlUGJrOWI3QkJmb1RaTTREZ205bXFDc0s2?= =?utf-8?B?YzZ4bTJY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?utf-8?B?UFl4eEhobUh1SHMrSWxQczQ5V1M4RDBOQXN4b1VjQmFFa2pnMExpMi91RW1h?= =?utf-8?B?TUxYT0psTk1wRHI4cUlrUGVFZ2piOFB6WFBVQURNM1VXME44TUZqYXc3d0RN?= =?utf-8?B?aHVXWWtoVXVoUFFrYUxhaXU3cG5hZkVFZ28wb0IrMUR3VnFObUxFL3g1VUlm?= =?utf-8?B?cVBFV1ZSWUo0aDl2eXlMUDlzTnNuMkh0V2REbGlwejdKUmpDKy9qZCtWcm1T?= =?utf-8?B?eUVDOGo1YU1iQWJVRS9LeTlrTmdlUkU4VnM2VUpGY1RiTllDdldNdzNtNWox?= =?utf-8?B?UkRRS3ZDMk5zU21OQXRVdFZOY2VZOXR4Rmw0ckRINU9GZ2Q4eU0yK2Y4V014?= =?utf-8?B?bEhTMnBDakRoYWJuUWdrbFdxSjZZYzRlaXhiaFh2UFFKNnBaYmM4Znc3aTB2?= =?utf-8?B?MmY2MHNKbXFueTVDSEYrU3ArcTJTNXBraklXMHRNbE5YajE4UnZ1NS9zVCtZ?= =?utf-8?B?SytHY2FwYW9HSmtOd0IzelFYcktKWEFzRkJpOTFsZ0tZaFRGaUs2NXNMUmZy?= =?utf-8?B?YWQ4ZG1mVEsyMnlxSy9zTzZkVXhHdi9ta0tpUnU2cjM4WWl3WURLZDVlejQr?= =?utf-8?B?SFFROTlVYUJzQU9jSUE4Z1I2TzQvYXE5QVBOS0N2V1ZYb1phQ1d3b2xjTTBz?= =?utf-8?Q?B5IZL5tGy8QnJ09o+vh1hm9uxC+vrn5Lglm5ri1?= X-MS-Exchange-CrossTenant-Network-Message-Id: 8f5fce71-e866-4b96-efb4-08d98d923ff3 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2021 15:09:13.0076 (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: zk7ME6Py27kjMteirxb1D/7TAq/wY8zvMn0U4x2tB7pcXvUm0WmPlUhbYXGsBoh+CnxQL/JLVQ0mKWjyvRV6mA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4838 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v8] ethdev: fix representor port ID search by name 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 10/11/2021 1:53 PM, Andrew Rybchenko wrote: > From: Viacheslav Galaktionov > > The patch is required for all PMDs which do not provide representors > info on the representor itself. > > The function, rte_eth_representor_id_get(), is used in > eth_representor_cmp() which is required in ethdev class iterator to > search ethdev port ID by name (representor case). Before the patch > the function is called on the representor itself and tries to get > representors info to match. > > Search of port ID by name is used after hotplug to find out port ID > of the just plugged device. > > Getting a list of representors from a representor does not make sense. > Instead, a backer device should be used. > > To this end, extend the rte_eth_dev_data structure to include the port ID > of the backing device for representors. > > Signed-off-by: Viacheslav Galaktionov > Signed-off-by: Andrew Rybchenko > Acked-by: Haiyue Wang > Acked-by: Beilei Xing > Reviewed-by: Xueming Li > Acked-by: Viacheslav Ovsiienko Applied to dpdk-next-net/main, thanks.