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 429D4A0C47; Sat, 18 Sep 2021 04:45:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 00F2B4014E; Sat, 18 Sep 2021 04:45:55 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id EB5204003D for ; Sat, 18 Sep 2021 04:45:53 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10110"; a="203070944" X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="203070944" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 19:45:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="701536698" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga005.fm.intel.com with ESMTP; 17 Sep 2021 19:45:53 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) 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.2242.12; Fri, 17 Sep 2021 19:45:52 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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 via Frontend Transport; Fri, 17 Sep 2021 19:45:52 -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, 17 Sep 2021 19:45:52 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L0zS9XfDP1Qz2hlr2O/8GjVimRj7EcMvlmgS+wnU09LUPHj6BMMM1nZCejINovBPjJSQJm/bK0KSESCsuytq5AjjXce/S6BPKlpX3mnSqAz7186RWL5zOHMrNeVbHETMugVdhFigJYo1RfUTrHwfS89CsfJrM0zknmA210J0vJmTO+CKG5XLmaHnoSpM5dT5O0xe3gbSVnORwg+6fGoza5Em9g2jfTOeK7Tz7OgKCrLU09FOYJ0tF6T1zXLgjDk75PlwkZBxs1L0yQUYkWyxmRDZqeWUZ5/tH6OHDyWsaiYmI0HmLCNa8z29a69xhARoF0VzPvg1LuYL4YrjQVWPMw== 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=1pG4wTL0J3EsA822J9yq9a7SXVVDtle5SEUWMMnBk5g=; b=ALtk7S2n8lmh908y1TF9fDAnWmmbZgHJ+ODIQap+a0D5ixRJ5ll2zmUhH0hSMYhtgHK8s/NpMxlGQJqOsUegpwZdx8mxoOMHOyp5FZO9g1ZiVY6XYwrTx9YqPg3UeKQFWNiaGAbZ1GP0i7sEYyJBUB3k7fH9V17cg/X4v2hgLDD9vnbmHl4Bv9TbiqgV1QchGdNZPCWSksQrLBU8SERaSbFvXLA5dluRGrmcSpvVuuf/pGLfyx5ISN07XrqMCAghhVZWyCe14dsmOWaS79PSTyaeZWCqf2Lh+2XmwhtJBW5k52lEnJYwdVA+m7e4iv0ok+Dol4NCCaUDf89WIX0ULg== 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=1pG4wTL0J3EsA822J9yq9a7SXVVDtle5SEUWMMnBk5g=; b=fKiZn2hWWOeBIeSjHZLqVpGSTfIRzOm9mQBC8greo/fdo9VGB/fCCS/yDtrS3u/2I1cV0u2Kl7Zm+7cd1uk9H91icjgxMlC7Ypbhy2VKcEIE4i6SCmZJTN46cbXqA7v9o0nmzL6pmbN26IyT45aM/zb6BsA0v9cOe/dIAh2DYP8= Received: from CH0PR11MB5523.namprd11.prod.outlook.com (2603:10b6:610:d6::15) by CH2PR11MB4342.namprd11.prod.outlook.com (2603:10b6:610:3b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.18; Sat, 18 Sep 2021 02:44:38 +0000 Received: from CH0PR11MB5523.namprd11.prod.outlook.com ([fe80::8857:c39a:75e0:43df]) by CH0PR11MB5523.namprd11.prod.outlook.com ([fe80::8857:c39a:75e0:43df%9]) with mapi id 15.20.4523.018; Sat, 18 Sep 2021 02:44:38 +0000 From: "Li, Xiaoyun" To: "Xia, Chenbo" , "dev@dpdk.org" , "david.marchand@redhat.com" Thread-Topic: [PATCH v2 2/7] app/testpmd: use PCI memory resource access APIs Thread-Index: AQHXrDZgjXhaooMHkkmsP4J7WPWFqKupFZRg Date: Sat, 18 Sep 2021 02:44:38 +0000 Message-ID: References: <20210910022402.26620-1-chenbo.xia@intel.com> <20210918022443.12719-1-chenbo.xia@intel.com> <20210918022443.12719-3-chenbo.xia@intel.com> In-Reply-To: <20210918022443.12719-3-chenbo.xia@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: 605e96c0-0d3d-42cc-89b7-08d97a4e420b x-ms-traffictypediagnostic: CH2PR11MB4342: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:826; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pBrdFehSQ0X7VteiGUQtHM3Uvs66nYKGN/lW4NozressC4dwydH8P4EIZI1Ctucg3yXOf9CUvq+1jDfUgiN5HAghODF7gtbiNR6fnX6nXc3AyXB598hhNCCTI45fxKyiCK2SuZAWNJE+Ww2KT7r9PjZKh0tN9t2jUxdLVWeetc0j51Ln+6Fn1SUdR9sodZ/gyILj0w9rZieEZzejD/gXTmunmgkTr3RX34uthTdJfb2vMtvnXX3pOBTUOzw7Ufg6BMAbEOVNS+7O2iVGmHd9GR6ItXzqvdNIHvqZfeVR/ooFwGin8Fm0vEoivbA/EPt48VAIsA6FPXe/S9mmTfXvm0VZkz/73DjM3iYmxLQaNjnszmsI2KJft+y4OLVVklxgY7LQICdB9duSc2xrHL/00EsQX1Vxk2UwWIOdCaDDQcJNLRkhmOc3ztPR51psEYDpZbwgtO0IhLPiWwPpjz4ArP4iqV5MSP6U1TgAey9fR5HKnTS+g739HJZWByJX21YTIg2LJQGbrsRppuvlrcXFcN/8JP1qfLOPHk/X57RSLoANjv2/NBoR4nh30TLTdXfWOKrEGrp+Nzb6Ziouovla5AED2WU+A4cUMKGqHzuzy88rZVsXCNQjN/tK1AVU0vBLwipJQ5GtzirKz7q1HmxnyQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH0PR11MB5523.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(39860400002)(366004)(136003)(376002)(346002)(7696005)(316002)(110136005)(2906002)(478600001)(86362001)(76116006)(52536014)(66476007)(66556008)(64756008)(66446008)(66946007)(55016002)(53546011)(6506007)(71200400001)(186003)(26005)(33656002)(8936002)(9686003)(8676002)(5660300002)(4744005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?J0LK4ev9PZvaY/KXSQKCp6V/wJfHHx6Xt2dgCi0fUS2acbT0hkiTwEOUi4pZ?= =?us-ascii?Q?IHtdGLUMnq7Xd3amdSF2L8GiYaOrHbbU7uJJrpjuYxd1hYZAGDQXiG2U2yGy?= =?us-ascii?Q?woRcOBuqpkOYwTnkKbWKjqmkuWk/p2n3u3qlXgRtikb2Awx0qEuRiqtPPGQ9?= =?us-ascii?Q?QPaz47IzzsAq7kUt+AWDGQ5JpoaXGqAPQEEVcFpcpe8Q4QEOW8SRKvFNpgHp?= =?us-ascii?Q?9JKU52hNpzKavMRrBc0iCqWWB6GMAkEVZtR/V+KIOs57ORiLFuhiYTrOBYJg?= =?us-ascii?Q?dJYE4bsm5PHsUIUnhqufEo9jxCWFeeTSwN0WvcpwpoueXh6hr5y2AKvKAzf5?= =?us-ascii?Q?20k5eB5PMOmXYZ5k9BMpTDqSPLCJmW/fYCXEzTMMz1CrgNhtS7hC38uCCpVr?= =?us-ascii?Q?dEC39Zs7UaSbYq0uckTs7AtyI6fQCKIOwO8U5jsxBx05R6cUxRMJlv6tSj0/?= =?us-ascii?Q?aT78hW7lVOEVkKnKjtI1H8FeUy5vQ/Fi9nRWYxP/aQHlVPl9ZiaAYxxPXmG3?= =?us-ascii?Q?rhoqpXAj77+0Vzc8/+3DGtTjgxU/e+Yd2WmHMEbSKHNRROLvvOVTHclQkqrB?= =?us-ascii?Q?aMRLXr1YMqsy7W27Z+Hq5QchZ9A++hA6XmGpIv34AIdcUNWGHB0V9tpOZ0kL?= =?us-ascii?Q?KsZm76evJoDvV3XHTDMoh2EUioFdqnYfQVb9eDKKYb3MRpsQovu5o+rs0xLb?= =?us-ascii?Q?baGVRBV7DzwszD3xrafZ/5e5VlU5CcBsVlODbeVU/ZquHmFEcADhGKyGhd7O?= =?us-ascii?Q?92tAJzUR+E/AqNk+XRBjWw81uKVLMaRqRia6THQnPMzZboiK1syVHb4d/nGi?= =?us-ascii?Q?7saugZ7ta2Ige2CB/csRHGQn4+P26iiUkbKPsXMRQoTIB0xlupWXs4v82Cyb?= =?us-ascii?Q?bGWc2KRovBE7bZpcjbkjoyQyFgJKwsLMbIexJAQTtSVZiAIHXfxxRpWitKNZ?= =?us-ascii?Q?XbeKsSI6muRxxu8MDjbVm4wePzyhVDphBIQsghHfW95JXgaRU+SS1LutTfu7?= =?us-ascii?Q?4ze8eMBEqrD+SRLTYYoIxZHNHsidAlk7kMm37C1tMu1eilbQwd294Dpj/T3D?= =?us-ascii?Q?YnDs73/xCxawEma5idUzRoGnWX3PfHpVZ+fSMhL4vBUEaOHHy8T8bqupcn5L?= =?us-ascii?Q?J3NTjAB2D7XWZKcslHjU45aYdlxBG4wN5b+xsa4geBin8WU0Jxr/zsM+KR5K?= =?us-ascii?Q?TWySWpdk7wU2pj+ULGaq7OnH2PAop537E07nqpuXtDSU5Bx/EoCtLF59crSM?= =?us-ascii?Q?4HtGRbh91FtBfhhlJd0HYNdIf3q6/uiZOrAwGk+daIc6z5S8hH5PwtdCzj5F?= =?us-ascii?Q?H2oY/pPz9Gai5Nl60ZQJUuYv?= 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: CH0PR11MB5523.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 605e96c0-0d3d-42cc-89b7-08d97a4e420b X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Sep 2021 02:44:38.2859 (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: nV1ntScZbgRjRLE/aW0wIGgCL/EmeZdQvUHHfjY3TYuz6+KDTj4ykGNkel8d3R1SwDq8uUxQ4pS4de3dbwN8Eg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR11MB4342 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 2/7] app/testpmd: use PCI memory resource access APIs 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: Xia, Chenbo > Sent: Saturday, September 18, 2021 10:25 > To: dev@dpdk.org; david.marchand@redhat.com > Cc: Li, Xiaoyun > Subject: [PATCH v2 2/7] app/testpmd: use PCI memory resource access APIs >=20 > Currently testpmd uses struct rte_pci_device to access PCI memory resourc= e. > Since this structure will be internal later, this patch replaces use of > rte_pci_device with new PCI memory resource access APIs to read/write BAR= 0. >=20 > Signed-off-by: Chenbo Xia > --- > app/test-pmd/config.c | 50 ++++++++++++++------------------------ > app/test-pmd/testpmd.h | 54 ++++++++++++++++++++++-------------------- > 2 files changed, 46 insertions(+), 58 deletions(-) Acked-by: Xiaoyun Li