From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 66E60A04B1; Wed, 30 Sep 2020 07:47:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6E1231D538; Wed, 30 Sep 2020 07:47:26 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 634C51D422 for ; Wed, 30 Sep 2020 07:47:24 +0200 (CEST) IronPort-SDR: lZpVVVUCliHT/i6NoGrW4VilfA+5qtfRp0y0JucgcnmiB5KEZWzHZqcqNRwgYhbcglaJgAC7WP QZzX4SPbBZsA== X-IronPort-AV: E=McAfee;i="6000,8403,9759"; a="162428679" X-IronPort-AV: E=Sophos;i="5.77,321,1596524400"; d="scan'208";a="162428679" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 22:47:21 -0700 IronPort-SDR: 8ZXczbSjf78f/DQqxyacCMswZwunQmdflFf883KlJfbDJhh3e/i7hHg1k9Nbgl2na6k347nAmC YzBJKwXqpORw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,321,1596524400"; d="scan'208";a="351422743" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga007.jf.intel.com with ESMTP; 29 Sep 2020 22:47:20 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 29 Sep 2020 22:47:19 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 29 Sep 2020 22:47:19 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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.1713.5 via Frontend Transport; Tue, 29 Sep 2020 22:47:19 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.106) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 29 Sep 2020 22:47:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fQ0SZiqFc5riAt5MxBCf3imSL20yB3UkOUoIUn51LQC7s0O5a886s2NsRFr+YQWdfsmlftOa4x6yuGs4SgYl3CXqiprWPPFQGTM/1VVRBXdPobrp7e8vf7EfKdm4h4oaAqRruSY52OqcD52lyeEsW7dqqPpNDJ7xVDR8KOrk6F+Wb9RVAe+XMOQmXmoXtc711jOQFz5fJEFnUDHSJh5A/qxPLbZg7+/wgwFFyiGbdgt9O8tqSiOdZGo2J6FY4//tqut0titDR5Jc4d+U8sduKlOZLT/j5ROF/2tF0J3S1KhboeFI1djikipd+FGF82eVp0SF1Uc0zoAQthHwqj7ERw== 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=v4MszDEoMpYuVZ8m070yB1SYlXSboRcXlH7gol6fdWE=; b=LORbHqzS8oQdVxKsqBIVDx8eeghk4fepLQlYJbTvesj6D8CD4Jie8yG4T5cc/oRibDWnDV2G7fQYdeZrr+vU/1vNlxJTDBV5oc3jIk2M0ZkmI9ZEkCKs2Ka9zTlxvtkgnZF9lckEtVMrfJvMzB5U8pKtI4dB+xJDa0cOfplV0kka3weiFUY7O8ZQZuubmaqTSqEo271FUqikxbDq02YEQ0nYOZ0OOOnVZzNrRc/3QuosqTA1NRPUAllQUw4r3sKOH98Oc6ebuOtpajHWIPWYOjeXY+8skZU3ThIv4gN18iH7VCqJunIrNYnpGuZDoo7Wpj+HdPOwHI3vLCUnBa2C+A== 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=v4MszDEoMpYuVZ8m070yB1SYlXSboRcXlH7gol6fdWE=; b=CNo+cP8M1vWHbcZoameqXLrBvJsK4L8tkcBFceeSHtPPwSDrqjNE3N66p8rak5XhM0Et/7AZyQQ21jisWIll9ws80GqBBpsalEE60jsogrIQOYm0zRWCicgG8Gq4yi6xGb6wSzGurIKKE6tVhtVFAtaNLBLoPAUThpGuRyzhUmI= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3885.namprd11.prod.outlook.com (2603:10b6:208:151::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.22; Wed, 30 Sep 2020 05:47:17 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::1dc7:9f52:91c1:52da]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::1dc7:9f52:91c1:52da%3]) with mapi id 15.20.3412.029; Wed, 30 Sep 2020 05:47:17 +0000 From: "Xia, Chenbo" To: Maxime Coquelin , "dev@dpdk.org" , "Fu, Patrick" , "amorenoz@redhat.com" Thread-Topic: [PATCH v3 1/8] bus/vdev: add DMA mapping ops Thread-Index: AQHWlnu9PJYnJyX3ok+DYI17Tj5PvamArT0A Date: Wed, 30 Sep 2020 05:47:17 +0000 Message-ID: References: <20200929161404.124580-1-maxime.coquelin@redhat.com> <20200929161404.124580-2-maxime.coquelin@redhat.com> In-Reply-To: <20200929161404.124580-2-maxime.coquelin@redhat.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.38] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d6a085c2-7976-4265-de1d-08d865044a6d x-ms-traffictypediagnostic: MN2PR11MB3885: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:345; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 02LLKSSysCHnL3lafk9uRC0JCeCtHXKQvLojD+ZCgdUyGDBR6/1S/WZK/+uyjHn6tZp3iv6DjExf+IK/87QPrJZkUL/TScz9p7M3yvUUMs//SA1lOvooMu8BNnmBpKwJWouuT9O/Kd5SWhvKePXsZ2JM2wpnpWsvBvunGlvbU1xsPPKkJ1HKKmyOV+5UpC52Uj/Fr5cFsb8WndXZq3/Vzesxm2+ZRu9+gtAXZqrgld1wOEc5MBMCd5vnL3UqcBDLjTNsxM5hK75xIM3rOBxMuVRuCZiTQ+KxeK4EamYWyfHe/BBsnPqy7hGifrX9F7+JDirHtbWhGtIAUzvfEh5s23iwagw62msN1thKM4TMvCmHU0PNk4BUkCt0j/5cxqcW x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(136003)(376002)(396003)(39860400002)(33656002)(316002)(186003)(110136005)(8936002)(6506007)(52536014)(478600001)(53546011)(7696005)(66946007)(26005)(76116006)(5660300002)(55016002)(9686003)(8676002)(2906002)(83380400001)(71200400001)(86362001)(66476007)(64756008)(66446008)(66556008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: b90jF0ioeg/SNObZmrCzofomMeaOk6SA4/Uj4irwZKraUiD+auF+QOXUXxCLNiDsSZa9K+NPrPQJAvmfo1aIpDMhYz/kuURw2gQ0Ffq/14QQloA4l2v/rQF0OChdnhCy0Dcyhh/Ld4zsQdJMAm8ccXbOdUPThkUKv10hqo6MoSuU2i04FHR/b1uwFQtgt71Xt9czhCNGIWDOJacNjin6fQoxEaGCtVM2ICSu2XiWUN1Y/Znxv9UoAlw60J8ah573lGJdLARnOUBDmbUPUbm1HS+vwt7bkJKzLgQqpRwm/hv0kJ9oWz8Na6KwW0qp+TeZlI5kh1oHUUCa87OY4qLFoejUEhWQX0MEZkYoZ20VOQczIMaT7jo8OSjZbtSC3kHt8cTrww5iQXdCw4jyw8n+7700P7oHKd9AbCgAk5MBG3DD377xYFzytogJOSsmIqnB5obBcmpOyocZPD/4N3RsCCERuKq5T8llPSqMLk5RFajy5jvSCo2c93oJrJ+ivtu4a9pbtlYgc8KrHlbNKZnKxtQ4pg/cuiEHy4jYK87brFHfOkOizJh3aOR/DMZo0smuAKhkmbSUjzAxAjNJGcaGhfpSDt4Qa2S0ZlGGlxqPGLzrfWLV98hzCqURGwD98YULLHCTLEXGtECakmZw812NOg== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6a085c2-7976-4265-de1d-08d865044a6d X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Sep 2020 05:47:17.3835 (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: rzNAVrBTFkJundWn7xzmfTC9YKk9jysqFez1oqenp3qfr8Ll6Xad94G0I69bmrxy8iLKFzsDuag7D65GNaycBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3885 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 1/8] bus/vdev: add DMA mapping ops X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBNYXhpbWUgQ29xdWVsaW4gPG1h eGltZS5jb3F1ZWxpbkByZWRoYXQuY29tPg0KPiBTZW50OiBXZWRuZXNkYXksIFNlcHRlbWJlciAz MCwgMjAyMCAxMjoxNCBBTQ0KPiBUbzogZGV2QGRwZGsub3JnOyBYaWEsIENoZW5ibyA8Y2hlbmJv LnhpYUBpbnRlbC5jb20+OyBGdSwgUGF0cmljaw0KPiA8cGF0cmljay5mdUBpbnRlbC5jb20+OyBh bW9yZW5vekByZWRoYXQuY29tDQo+IENjOiBNYXhpbWUgQ29xdWVsaW4gPG1heGltZS5jb3F1ZWxp bkByZWRoYXQuY29tPg0KPiBTdWJqZWN0OiBbUEFUQ0ggdjMgMS84XSBidXMvdmRldjogYWRkIERN QSBtYXBwaW5nIG9wcw0KPiANCj4gQWRkIERNQSBtYXAvdW5tYXAgb3BlcmF0aW9uIGNhbGxiYWNr cyB0byB0aGUgdmRldiBidXMsIHdoaWNoDQo+IGNvdWxkIGJlIHVzZWQgYnkgRE1BIGNhcGFibGUg dmRldiBkcml2ZXJzLg0KPiANCj4gU2lnbmVkLW9mZi1ieTogTWF4aW1lIENv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