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 084BDA0C4A; Fri, 16 Jul 2021 04:14:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2D654014D; Fri, 16 Jul 2021 04:14:04 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 7039940143 for ; Fri, 16 Jul 2021 04:14:01 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10046"; a="208843933" X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="208843933" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2021 19:13:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="630933703" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga005.jf.intel.com with ESMTP; 15 Jul 2021 19:13:58 -0700 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) 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 19:13:58 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx606.amr.corp.intel.com (10.22.229.19) 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 19:13:58 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.101) by edgegateway.intel.com (134.134.137.103) 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 19:13:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A7Nl/DKgUJUcA/eZpyl0wP2UsE4eDw5j321WcwYo6t0Id5PyP9Weo7UJTDmbUmuuhaXIWCh3ooYOxsmU4+R909dDvu1uEn7llJavGsjJytgE9EiyV7lK3BKaQZlO3MUoVqjpFCVgJeQ3MXuKuc+4hU550YEXV92X855NEZfOTM7NCPGv+ZpXAK1i+4vXpXPgJEBG3NV3dnw+urK3GMBwqlnb5sU3WVxvIIPglCcAJ9WqTLpOTFky+u/uPSE1WeAvq871USk9pUXBK+HPU5MFj+XdIhKcnZPiXbRj7w+5UhTBOyqi1E9qjG7Wd6J8yvCYJOmYU+k6qx78fiQhqUcZiA== 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=HXdgwmQbPQ1/7uwCcKUCvztLJbZtORfGycSYoE61Aag=; b=k4TkHNI1FQ67Bw7ihM1Y9/4GrK+zeM/n0Iv655DEHXvhOZepUePqLQ1ZE6KbwzC2t5o6EfIDliRFwph3mSY3egl+ULLuB2Y3ivjL5ULODiutk12Je6/S/cjYlbODpuKqvgso12awC7DVhQ2DM7ijOFwbFhzxL0A1KKhKPX+JTQdmR/kc6GGh58o/tN/veOGTqw/PTkoJkRUjPR7LdRYgEsATsrZpE6bbbVHGKdJEBxE60czLzzfpzW+n+23NiftPIU+Mi56/rWqRmobtDRWVvDmLiPoVo5umjz51762Y6W+ZUHWegAZfHhTwEDqQiVd445DxZbaybhZPnbi1kVnNyA== 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=HXdgwmQbPQ1/7uwCcKUCvztLJbZtORfGycSYoE61Aag=; b=r6fAiaosV+nkeC6Q3NGt+1FmM00OlFfSPhmBPWnNcZFqh68kDTjvtinlTJ8QR0vi8WdNYikU+DAJGtHNlIv35R/rqFilbCsoR79hm4X0z8PvQx33OqbB4H3fGYOfp085+hhVybw2fiklcLYBcgbHCA0J3TPGxtCJEEWtRmP0Mu0= Received: from DM4PR11MB5534.namprd11.prod.outlook.com (2603:10b6:5:391::22) by DM6PR11MB2828.namprd11.prod.outlook.com (2603:10b6:5:c6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.23; Fri, 16 Jul 2021 02:13:52 +0000 Received: from DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::87d:1217:a7cc:dd72]) by DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::87d:1217:a7cc:dd72%9]) with mapi id 15.20.4308.027; Fri, 16 Jul 2021 02:13:52 +0000 From: "Li, Xiaoyun" To: "Gributs, Paulis" , "Yigit, Ferruh" , "Burakov, Anatoly" CC: "dev@dpdk.org" Thread-Topic: [PATCH] app/testpmd: remove most uses of rte_eth_devices Thread-Index: AQHXeXw9drh/lXRL6UKvuZyWsczciKtE3IXQ Date: Fri, 16 Jul 2021 02:13:52 +0000 Message-ID: References: <20210715132015.1587544-1-paulis.gributs@intel.com> In-Reply-To: <20210715132015.1587544-1-paulis.gributs@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 250f8f55-074b-43f0-6920-08d947ff5b43 x-ms-traffictypediagnostic: DM6PR11MB2828: 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: VLgg0ww/cbee/gSTgqTZfl2niuGlVVSV80e2vv7O0TzIlbg0sZvURlEAEB6d6aDu2jCvBmJ9kBUPmervuiNrgmdZvU2+8DnlrLE7zNPiKUr875aQ4c78Z4V2uAHBpsOmJ9FYFJJxUHg19diXtGrth50kDqtg1gz/EXnepdAG8rXrBJyXoSVSImltYGWmd1Cc52nH9yg468AqIMytVkGSCc6m+8Q+TIiBg5jtnPBgQLBCn2deK/7JSN+ul1GW5tuKRMAO8QZVfTirwhTgDXlCzQ38IUfBy2yYCCfy20pf9IC0EGIiiFXW6PUcRLck9HoV2iUmR/qpdAxwYcb4NsSqOXO3zWZZpKlMLcMqRj0a4tYEDi11eEZcL9zgSf6MLNDcnAo4paHpKGhIePQbYBVHVF7ImyPaNK+uHkGoSkjGb9yhZSwuVfWmo+v6O9kA7qcoGao5rx1njKahs206Sw/qyMv/rMTxRabD5b8tJIVTT7rVpM8YKL5rvqrIyxwAs3gHZ0A12IRMAjJrDnNacMJWF1igHgVCCgXyj88MUaZm+Fc5w/zF5BfE+2XTeSwPic3sBC5FU9YTIaUaHbvN3NPmoCgGAIdVUg5kuwKOBOg8MQgaJW9ONf1dCySe7WbDqwU9MMEyBiT+oh4hJ7sjILBOQLabvJsn/U/nDfR8hF2cPTLk/c99VeeFCM1kT94iAw6JQfzG/XjACbmgqcFXle3Vdg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5534.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(122000001)(26005)(6636002)(71200400001)(86362001)(52536014)(53546011)(38100700002)(316002)(478600001)(6506007)(55016002)(83380400001)(8676002)(33656002)(66946007)(186003)(66446008)(66476007)(4326008)(9686003)(7696005)(110136005)(76116006)(8936002)(5660300002)(4744005)(66556008)(2906002)(64756008)(38070700004); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?qemN2l4GfMVwVteNVyvaqdDj9SFc/IWo8llSwMgOjHQJgFIOpI2h3q+V47Jq?= =?us-ascii?Q?AKAkSspm9rU5ZQOJX7nOdWJupmxinLuZM8k7KW7e0l/hDVKSuea7xd1VLXWs?= =?us-ascii?Q?bLMvCGeuuXTTyRR9+Ws6w5J1JAPZoBfjSfCmOnOtOcWKPSQcibVtdqIi/6Pt?= =?us-ascii?Q?ki6in6hv44Z93XjcWP8RO9CO4gkKW2Dc3vj69InUtjDGy0EDgRe4VJS9JEXo?= =?us-ascii?Q?LI8amp6Jb0+3huPPe+LjCMlmen/XytfzqxYK6bkJPQghlrocddmBYjATgYJZ?= =?us-ascii?Q?lSk8un+WuG1pGNzCgCKrBpw1H58ES6UHe582Hy1HA0orieVaRloAXf3LMyQ5?= =?us-ascii?Q?TIfC6nojKcktX5bhI99D8+bSEmlibn8E6KEdMZgWZ8rm7FkB7goHKRYAHjGz?= =?us-ascii?Q?6dbyG15/U/4bIsu9w+I8cKmonCAQN3ZitKqG6o0FuukYE+Bt5mIbP4slUKCh?= =?us-ascii?Q?G7uzekkKaPyNcByYywYjjkyBqlBVzCw0oPRle0UlL73XHxXlJtgheO/VHdX3?= =?us-ascii?Q?WgQEauwURg4eMB/GwcipENiThXKZKBRkFsH1eUtrV8zDwbCqOksfugdle8Uy?= =?us-ascii?Q?MygZfkEUzybtiCbTVapsLsFN9EDldthu3V0oqWvrc7x4LOYS+DI9WoIOYlhx?= =?us-ascii?Q?sdBVxG3YfTP+0GCAuq0FbZzu+ztDIYj9i9ID+SNJkxAhzjQy1+XruCHm3dB8?= =?us-ascii?Q?rnNEFCfPAytrSwyQJ4r+msF+O8d9h+SCxC52J/UPEwbcOdImkEXeLU9aLymT?= =?us-ascii?Q?J2jYUYP47OYmd5XX5tUFrzNOSkvJrSDCrxDHOjNS3ckB+1+UDOrWGAMegJPs?= =?us-ascii?Q?3UmU1xbcKyjTqLwlNR2AczdPNTbrAzLYjKKPbn8UVBpqDUjKnVHunlbNEnYO?= =?us-ascii?Q?xSDg1G4JQM9Zk3VrWoUwkDVmcE6304yNFYXWZCssj8LYjmlKyE2Flplq7wte?= =?us-ascii?Q?r8Ugmmjsgge21Ur1XmidPDPnQ5wTahAP/rHDbSEZYgPfP9lBPf620z1xKssw?= =?us-ascii?Q?Zy7GqnXqIa0qRst/21peSVPav337nUhAnbrQsk+iuaQp12UmlEOR/wkIzIHy?= =?us-ascii?Q?mx5C/ARQSBXNISkcavm8jHIpHUhsWOM9lO1HBW/f+3AKypg3qhi1v1eFTwIa?= =?us-ascii?Q?irXxx+QoiAw7cwLLUqACWpCpNcR/5UgrWluqwwAcN91FmKk+u/tHTR5Dbtvi?= =?us-ascii?Q?YKcNRDiPCFK2go19MczaW5L/enwXNpZ8EuypWhRpe+YS4yVIAlwko1zFujSu?= =?us-ascii?Q?xjadlSpgbaGuM6D5O3INamR8naMlE0ibQB2UHFh0DOsHyAv3uomh2wYcaPoj?= =?us-ascii?Q?KpDG/FguOk641Qr47NF7P9is?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5534.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 250f8f55-074b-43f0-6920-08d947ff5b43 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2021 02:13:52.2435 (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: uSuuyuxDq+/qKs2MqDVKHRtgrz47YdSbHDWfXsT0Oa0zX6n9S+6JsryTrMOq23AU3WTtRYRp+ffjIW+0a2P4HQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2828 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" > -----Original Message----- > From: Gributs, Paulis > Sent: Thursday, July 15, 2021 21:20 > To: Li, Xiaoyun ; Yigit, Ferruh ; > Burakov, Anatoly > Cc: dev@dpdk.org; Gributs, Paulis > Subject: [PATCH] app/testpmd: remove most uses of rte_eth_devices >=20 > This patch removes most uses of the global variable rte_eth_devices from > testpmd. This was done to avoid using the object directly which applicati= ons > should not do. >=20 > Most uses have been replaced with standard function calls, however the us= e of > it in the show_macs function could not be replaced as no function call ex= ists to > get all mac addresses of a given port. >=20 > Signed-off-by: Paulis Gributs > --- > app/test-pmd/testpmd.c | 80 +++++++++++++++++++++++++++++------------- > app/test-pmd/txonly.c | 18 ++++++++-- > 2 files changed, 71 insertions(+), 27 deletions(-) >=20 Acked-by: Xiaoyun Li