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 D4184A0A0C; Thu, 15 Jul 2021 16:53:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7990B4014D; Thu, 15 Jul 2021 16:53:01 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 4E04440143 for ; Thu, 15 Jul 2021 16:53:00 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10045"; a="190934931" X-IronPort-AV: E=Sophos;i="5.84,242,1620716400"; d="scan'208";a="190934931" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2021 07:52:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,242,1620716400"; d="scan'208";a="430855761" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga002.jf.intel.com with ESMTP; 15 Jul 2021 07:52:46 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 15 Jul 2021 07:52:46 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 15 Jul 2021 07:52:45 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Thu, 15 Jul 2021 07:52:45 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.49) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Thu, 15 Jul 2021 07:52:45 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PQ/Xgxm2rCmMX02bpXnHWxo89XB86r4Z5Hg3hJI4h2QrbQZKQPwVILrwBxxm4sRuUyH8fIsP9B08Bg64Mz7stgImkPYyz8IcECwwerc3m3JRgxUVxuaHqxFsxvXDDpqCS07QcPlsIV4PMpgdW6Q0pxGwHrDucr8LEmCSHvBIIA0lQoHRSEOU+SVb7pZ3hpXQGj+WEoD8A8FEPLZwLmwz4CgkEB5dwbkpf0bdCk6GO1kDdLBcOZ7ZMCd42l3DEVmc9GA2o3kbzzqjOA4z9TZxcAG01HsB0buPMBvNrAV3CglTummWVsRsDPCAsU/1x1+U6/QGdlvlSu9OcS0sgEQpNg== 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-SenderADCheck; bh=0d4V7ZR7YCFvQOaUhTGEnjsCFPPQGxNvGKNJK0aA/rI=; b=j3lEzbWOWPu7UCNfjuClz1u7VRbsNJDBqL3F2UIeGiRkoF6yHz4we7TO7xPvSpqbB5W8UtIm8zxmrBA6AMglCKQOtr3BqnRVEfy7QLg+A5Wet6+MKOk2Q6c3U1HkGWOkTDQcipVtDaBnfDu8pQNuEawqTnrGdkTlz/bLcl8oDoUDrl54iQMphhr1IBPhj7TgHVe28JTrozDIXpkC5fgjJSG0T/jKTm/IWbW3Zil8LwlP9AX9SlFtCFA0VpB4AvgnuUKJoyGRm8FYfKtjZhDN6t/nBt2BvTkK/xTEn1vBm2xTJK5M+JJeFbn3YsMC6BcNDBC9nAQrYc/uQ/42um4qcw== 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=0d4V7ZR7YCFvQOaUhTGEnjsCFPPQGxNvGKNJK0aA/rI=; b=LmnKoWaShyLM+19ixOYiKa4NgNMrIBtxWiareM7AjwlfQdTusYAU0hebIOaS9j6y03g9emlYJIYFtZK7a02fij/+zMSC8GtEoMSiG2Vq2YCFvZEwJevMDFj1PqBvjJOEt2WRzc7iEtPsffAFluNUAwMIx5+VZE4c8B7hGoh/Qco= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB5110.namprd11.prod.outlook.com (2603:10b6:510:3f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Thu, 15 Jul 2021 14:52:42 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bde5:66de:e755:c5bb]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bde5:66de:e755:c5bb%4]) with mapi id 15.20.4331.021; Thu, 15 Jul 2021 14:52:42 +0000 To: Paulis Gributs , , CC: References: <20210715132015.1587544-1-paulis.gributs@intel.com> From: Ferruh Yigit X-User: ferruhy Message-ID: Date: Thu, 15 Jul 2021 16:52:36 +0200 In-Reply-To: <20210715132015.1587544-1-paulis.gributs@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MRXP264CA0041.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::29) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.0.206] (37.228.236.146) by MRXP264CA0041.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Thu, 15 Jul 2021 14:52:41 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 75152a6f-e9af-4b8c-b037-08d947a032c7 X-MS-TrafficTypeDiagnostic: PH0PR11MB5110: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0RKrBQS1nuZbFdSRPep+F8Y0iZoC4LX6/9Bq7Li263FfcizvuRZsoo1V5RzM5d24lUS0u/qwEXjwICd+AC+HeNPIPxK1QfxSGVG3sKlX831Q3GhK/Fp/4yg8Q+uo8cKPxUadZCxhXEGET74LfVXZiwgAXRdxv6Eb3Fyr2dkUIrO7FMmHGwS54z9QxzYRps0DMc4ZifNdqlBZT+VewJiyZZyToZn25vQPFHqiqX9obiV2S2RH4LCi+c/63lx9gf8b6b0GJVDwznTa9GrP7g3C4NfB3/1mfnYo41evc0GXTMmjWj5hcsW6Jtrnpq2aatW6qvg9aW8zBThzIGYLVnG5PZWZY26VF7nhQfsuC9NhlZsLYvtlRoRvR0863U5AsgYEpZzMZYfx/Kd0w4znUSXpqPIH6kUmP3+8am3L3XTwI0grZXJk0ya4RGB/EtR3VCU33H0Q5z8OXOxPFen0+v8nSt1TY9W8KPeL95zVTor35T0aNGy4/wBpQi17raj6Use+EGDFVwXQQMxsTJj/5RMkgNDYVC9h7vMsbJ+K1qMhlQdPfmCbY05e/Ci3z/RfH4m6IJaiRJ2RvrwgI2bKBknvygg86/FDa9EXlvZiStJo8ldHlYj/ypWRFuPrkdDYHEHSa6N0Oy+n7+JTURf0iolJpoCFeMryGvkM+Kxj9TwfThXhvrIalfz6DU3lDly6t+fU9fMYNucAZgWBwgZ0zBaOjg== 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)(396003)(39850400004)(366004)(346002)(136003)(376002)(2906002)(31696002)(186003)(38100700002)(66556008)(66946007)(478600001)(66476007)(6486002)(8936002)(8676002)(44832011)(53546011)(36756003)(4326008)(956004)(2616005)(6636002)(6666004)(86362001)(16576012)(316002)(4744005)(5660300002)(26005)(83380400001)(31686004)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?c0ZRSE02THVYbDI1U1psOHNBOWlIZHREdTdhZ2NxTHd1R1lCTUVkZFBlN29r?= =?utf-8?B?YVIxVEswZDdVNit6anYyaVFqZmlBTStIUm9Zb3FHekQyZGdrVDNKYW1xYnBp?= =?utf-8?B?S3NNODlhZVZOQTR2NmJ1cVZoeHc4OTNQM0twQi9GV2FOQ0lqcjE4cHJQN0t2?= =?utf-8?B?bGZLYzZ6ckdDc2tYcEdIeUlIdXdzd1JadnlRKzZUUTFHblZkMzB6WDlXSzhB?= =?utf-8?B?T3FpVWJza3hwSjdMcW82WUM0NzRWMkFvRFJ2R0ZhUGJ2aGI1MmZnbFNjYmZ1?= =?utf-8?B?S2hpc2dJNWhPSGtYdnRZSjF3VHFtNVZxdUJXNnJKZUMxamR3MHdNdWJUQ29O?= =?utf-8?B?MyswRmpEM1VISC9QL09ia1FtRGhaN05USXFlZ1pDY084eXpHWVRWQ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TajA5M0svS2Z5SlZXb0R2aUF5?= =?utf-8?B?NE94UmlCaG1TdXpFSlBabkJaSVA0clBuZjh4Sm44U2NmRHFnMkhnK3I2akZ4?= =?utf-8?B?Wk9YbXFLbDBkSzVIOWN6VWIrelJqSXkra1VpRVIrNlNCU0svTkhHTm5vbDcx?= =?utf-8?B?dklucWhIUENYZi9ZSmR3VXBKbzdTb2c1eTJSNVhTcjhMaG84VmJYcW5ZK0pn?= =?utf-8?B?WExWS2QvYVdHSTFMZ3hqNm5KakxOUGFDN2JwcGtzbVRBanQzMGtZSEMzOVlu?= =?utf-8?B?TGtKdDd2SHBNaGpiSGI3d3pITW5GMVlDbnlGUjUyalNrTFpvZndvWWloVlRn?= =?utf-8?B?aFlkdWRDeDlITW5uRWMxdXYxNFFadUlTeHhLOGd3dFFuZW1CeFRUblBEVXRw?= =?utf-8?B?aTZESW02cGNWNFpmUHpORktycUxhbUNtd2JwRTk3WWlDZHZsc1BzL1ZBU2pC?= =?utf-8?Q?39akLwayDqSdIU26Cy1HPThxA32R3ht4/ga/yEl?= X-MS-Exchange-CrossTenant-Network-Message-Id: 75152a6f-e9af-4b8c-b037-08d947a032c7 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2021 14:52:42.4859 (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: 1fVWgekK3g0naMsorXE5cavLmrjlZlpTFEGq66ai0g2aCpANeSUpyzxO88dCUKzpbctNCHRvJvQT9XaOmguUWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5110 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] app/testpmd: remove most uses of rte_eth_devices 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 7/15/2021 3:20 PM, Paulis Gributs wrote: > This patch removes most uses of the global variable rte_eth_devices > from testpmd. This was done to avoid using the object directly which > applications should not do. > > Most uses have been replaced with standard function calls, however > the use of it in the show_macs function could not be replaced as no > function call exists to get all mac addresses of a given port. > > Signed-off-by: Paulis Gributs Reviewed-by: Ferruh Yigit +1 to eliminate 'rte_eth_devices' access from application