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 CF8D3A00C2; Thu, 3 Feb 2022 13:35:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B646540143; Thu, 3 Feb 2022 13:35:51 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 3F9C440140 for ; Thu, 3 Feb 2022 13:35: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=1643891750; x=1675427750; h=message-id:date:from:to:cc:references:subject: in-reply-to:content-transfer-encoding:mime-version; bh=czodTs56r/MPP9BYjVmntJ4wCMyIUQo/ojXTUgFVhFU=; b=I65A6djeJldY5AQ9AyKO4u76oizUOTAxNC9Qqn5bPCpD0S6jzLSC64zt r3Edq5fKqbvxp0Q8L5d3mfJFOj6vw3z+s8Gf84uWQugJUm2lM3xrHvcuO +BF3hEa58aCoJQ1ycHk+VTrkZelGtFw3oujk9GA3/b4/tnNki9GfLbPmX +uUCexRkX+LlcXwobhNWpj9SeJooMJB7ePPcQD3NDRdL7tDxF4T/8BWtD tysd5gmlhKyDvY1Cceh98syLMUlQTrux8wzI0KkKmPTXgwPNJl5fDb31X aKGnG7W6R4woV05OjLLSPmP7gMTeSAu/4KrKjIFs2XYbxVpUgpaqN9suU A==; X-IronPort-AV: E=McAfee;i="6200,9189,10246"; a="308860973" X-IronPort-AV: E=Sophos;i="5.88,339,1635231600"; d="scan'208";a="308860973" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2022 04:35:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,339,1635231600"; d="scan'208";a="631327748" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga004.jf.intel.com with ESMTP; 03 Feb 2022 04:35:49 -0800 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 3 Feb 2022 04:35:48 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Thu, 3 Feb 2022 04:35:48 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.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.2308.20; Thu, 3 Feb 2022 04:35:47 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dLpBLhzjJFIePog2emaxammZAbaP+LjLTxxVZSDUOX8ulHqyDWNCjQSxhT44zalhiPKhGZVVz4w3Pe4F0y0Uv76XGhCvho2kCrXzN6u2AiEGItIcyTnE2JDemPSXg0XRw0ItzYLQc9CTsGpxE3fbvpFlm2JvGYfmbt0ijWtwmviJpKDfMghV3GAHbXppfht1t5ACeR5dOKXSps/0UndBKt23jRhFworM5wHEyTY/jFiupWxHmrEC+OSmGMlquegziAvzFR8p6ihcHaaQ6is7bCh8T46TCDxL7mryghvFIwTFjeEP0Uzq2dcTElxu79yi+5O9CgU80hfmkSkIw29OKA== 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=JsoSuyTO2Ts/Tx4ImshYSUa0VtUB5KkLnO/jStdwbsg=; b=oFwefi0DW3GaifWsafEjWCCq8l88+6KNpmecaetQGTH1j2O9bKXJwGkbkvmnjBX3w6ykBAPlEawIVR6MJyhfiXOSzGIKXskwSy30RzWKfPzjkdu6LSyDa+4eeW5eVp3hJShr1LO8VQU7K881EJQqbWIr0jmmmczWtIDiNZ+p5QS85oivIdc/TBc+u39+/RtAsvhXQb8diO83ONBeiXq050n1xJ286Alwlwcb8+1707gieDQijvLGv/j6TiTisIss67xFdZne4l1+b/HztfI9+rZGxxnrc+Eze2hLJCZ00RcyBYlUjwTlGlfxOAf9C4Goxgs1MxawQg4Y+3SUHL1hJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by BN6PR11MB1906.namprd11.prod.outlook.com (2603:10b6:404:104::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Thu, 3 Feb 2022 12:35:44 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e%7]) with mapi id 15.20.4951.012; Thu, 3 Feb 2022 12:35:44 +0000 Message-ID: <09e0651f-88d2-4d26-52ae-c4b64c985640@intel.com> Date: Thu, 3 Feb 2022 12:35:39 +0000 From: Ferruh Yigit To: Jasvinder Singh , Cristian Dumitrescu CC: Kumara Parameshwaran , Kumara Parameshwaran , References: <20220203082412.79028-1-kumaraparamesh92@gmail.com> Content-Language: en-US Subject: Re: [PATCH v1] drivers/net: use internal API to get eth dev from name X-User: ferruhy In-Reply-To: <20220203082412.79028-1-kumaraparamesh92@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0183.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a4::8) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a9c52fbf-2420-4701-ede8-08d9e711b289 X-MS-TrafficTypeDiagnostic: BN6PR11MB1906:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lw2ns7YA9/T7AeTdZfr3fIK2BB9/FDW9V7yKebHkBBLVJfTKaSlFO47v+7X+1/buX36e6MAQp7EFrq8YvCZ3556NeSnfGRP2optSuDf6vxv4ByqsqEV7ttnCcrIh4FKv/1GdqJuWFM3Uqodd2LUAhk787weXzXFDeFcjVv0jpTTRdp4r0+FW4h8QxIlBNLkn9fh0st9kOT7713yklu839C50MIZYbgfQVLAfubdSgP8YH+s/Q1Dsg+H1vUgffcUjQ8e+9qzUaH3a4ZarVJPHTqRDyvYaBNholVSyPjfsSKunIY9csm7f7Gdv3QgztmsrMUcXkCfTXiThWD/1xkqJ5ewh3DnWUX4rL0+ineTq5RNNe510C2+baCNa/YyPEmTsAy2dfOg7wYOnPbLxmK4GGwa52C2vFo3iyGHLjp3XQjnacR/QKOKTn1KOpNwYIoHoUrEvdLLdjZBgVciozrfKyAL/332toO64A4ktLAAzRf8sQ/0vqdR5xzUHzgoPdiFLgVcANGF9t2pSdwPpDssufpA5ZPgvrHyW3MbBOuwjXhHPUKqOUpYj9K+kPEeHjKZkUqvW2yFYAZTUbbSLYcfq99SbzVNn0TVZIhOvdX/tgEBG2IyhNVaDZv1Y2GK3Z4TLdqgowDPxHiMruUSOfDyilVRnkM6+6ucqIgut00yo5nVaLkbBThd9o6bwu0ZghvxGOGg2bnJKkQGd4zCV2M2Kbw== 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:(13230001)(366004)(6636002)(110136005)(54906003)(83380400001)(508600001)(316002)(6506007)(86362001)(6512007)(6666004)(6486002)(53546011)(55236004)(26005)(186003)(2616005)(82960400001)(38100700002)(31696002)(31686004)(2906002)(4744005)(36756003)(66476007)(5660300002)(44832011)(66556008)(66946007)(4326008)(8936002)(8676002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U3FxcU16MUY3RWFTU0tSN2Z6MStsWTdKN3Z2LytwUmdjSGREZTIzWks5TkhJ?= =?utf-8?B?YmlWY0VXTFJUek84NUtXdHBvUFQrbE9MZHZKMGtvMW51Y25wemkxemM2Z21I?= =?utf-8?B?K0hqZFZXVkxaZCsxK0ZVdFM5N1VHNHhaazR3Y0dDNFhOb1F5UFNGcUJzVzlM?= =?utf-8?B?Y0JoUGw3M3dZd2d3V3p4Tk8ycmJsNXJFNnV0NkMxUS9CSERKa3pRekxYcW93?= =?utf-8?B?S1VwOUFRSWxLOFppNkVhZjVhTTZ2NWFRc2VtQXBBNENJSVM4Slp6bXBSY1Ir?= =?utf-8?B?a216MUdrMVZWelRRQno5OWRrRFducVBPOTBrTXRtckxocXk1bWM2TjF0Q2pD?= =?utf-8?B?dHRoU2F4Wld4WktqYzRlQVk4Yjc4bFJ4d0kxWVFiVzdXRDRFNHM4QjVVVU53?= =?utf-8?B?bGV6aFRVNGdqSmdlS3pnbzVMaWlBWm9ydTFvbXBwVWtaOXM2MkUzcHFScVRq?= =?utf-8?B?RTc3TlNjVGsxQmcrblo5NVpOL0hlcUkzUm5tQlMyUUw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FqMitDNm1FTFd4cW85RXQvYi82MHVHMUJHWUNx?= =?utf-8?B?a3lhaVp0YXYyakp2NHkxZmljSlNVSTVvY0Y2dHpXZGdMZmdENGRrOVArZGdS?= =?utf-8?B?LzJyWkszWnB4b3RQZzIxdDQ3ckx2R3QyQlZtR3NsbStUdjZhU0xGY2RoVHBX?= =?utf-8?B?RnlpVkU2RStkR0t6bnBDY1kwSEVUVnI0Ri9idGNtemZqcFV3T0I0OUFZZFcy?= =?utf-8?B?N1ZidXpxeE9keGpVRXEwSVMrQXREa0dSWi9nbEN3aGtBNGpJNHV3TUtGRnFr?= =?utf-8?B?Y1B5ZTZ5YzdXajNwU0E0RkxISGIwbCtuMi8yeXI3UjE4SVo5eWlXRkdyNWk1?= =?utf-8?B?a05qUlpxS1JveFIyeVBrUlZ2T3ozYlYrZ0F4cjlLMzc1cmlOaStlM2tyNlIr?= =?utf-8?B?amM3WUl2N2N6QldWVUFUSVlmNHNna2p4Y2JkMEtLSUJCWnBrNnptbXc1Wnhj?= =?utf-8?B?ajhCd1dwcjBGK3RjekhVWmtyV1lNQVJPRlJmM0syaW5hSjNnUDZSb0hPZEp1?= =?utf-8?B?T0dVVEdSMkptbkFFQXphMEVva3pCRDdFdHlwQ1R5a0hZc25HYzVLUGdYZGxT?= =?utf-8?B?bW5lcjhJRkpJTkdHQnNHS0RtbjBMYXVIVmt3OEJsbTc3aURhNXBZakxIN2JM?= =?utf-8?B?Q09Od1k2SER0NUh5Y212SmVlR1lSZWFQNU5Ld1B1VWZROEU4dmFhcjVPWVp2?= =?utf-8?B?R0VZTm5zMm1MSW9qUVVjMis3VmxiZFNrZlNRanMzUnJXbEtsd3FBNi8wREJi?= =?utf-8?Q?0eMWi5Nip2pWylUMSC/BonM=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: a9c52fbf-2420-4701-ede8-08d9e711b289 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2022 12:35:44.7667 (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: MFOMc9iiKDIUJTFh34d4qIDsI3OEYYkoXGK+pywOrmVqK3HzYuXgHM1cstrC7/Akv0jt7Forn71Vp697HVWa0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1906 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 2/3/2022 8:24 AM, Kumara Parameshwaran wrote: > From: Kumara Parameshwaran > > Make changes in PMDs to use the new function where > rte_eth_dev_get_port_by_name is used to get port_id > to access rte_eth_devices > > Signed-off-by: Kumara Parameshwaran > --- > v1 > * Replace rte_eth_get_get_port_by_name in PMDs with rte_eth_dev_get_by_name > where port_id is used to retrieve rte_eth_dev data structure Hi Jasvinder, Cristian, Can you please investigate using 'rte_eth_dev_get_by_name()' internal API instead of 'rte_eth_dev_get_port_by_name()' to eliminate direct access to global 'rte_eth_devices' array from softnic driver? Thanks, ferruh