From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id C5451A0096 for ; Mon, 3 Jun 2019 18:44:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BD09F559A; Mon, 3 Jun 2019 18:44:29 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id A5E745398 for ; Mon, 3 Jun 2019 18:44:27 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jun 2019 09:44:26 -0700 X-ExtLoop1: 1 Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 03 Jun 2019 09:44:26 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 3 Jun 2019 09:44:26 -0700 Received: from fmsmsx105.amr.corp.intel.com ([169.254.4.170]) by FMSMSX119.amr.corp.intel.com ([169.254.14.25]) with mapi id 14.03.0415.000; Mon, 3 Jun 2019 09:44:25 -0700 From: "Walker, Benjamin" To: "david.marchand@redhat.com" , "jerinj@marvell.com" CC: "Burakov, Anatoly" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] eal/pci: Improve automatic selection of IOVA mode Thread-Index: AQHVFw/tW87lxRi2SUqCq6sy4wNkjKaKOx0AgABjUIA= Date: Mon, 3 Jun 2019 16:44:25 +0000 Message-ID: References: <20190530174819.1160221-1-benjamin.walker@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.30.5 (3.30.5-1.fc29) x-originating-ip: [143.182.136.145] Content-Type: text/plain; charset="utf-8" Content-ID: <44904A54194FE847B98A95CC24884B25@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] eal/pci: Improve automatic selection of IOVA mode 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" T24gTW9uLCAyMDE5LTA2LTAzIGF0IDEyOjQ4ICswMjAwLCBEYXZpZCBNYXJjaGFuZCB3cm90ZToN Cj4gSGVsbG8sIA0KPiANCj4gT24gVGh1LCBNYXkgMzAsIDIwMTkgYXQgNzo0OCBQTSBCZW4gV2Fs a2VyIDxiZW5qYW1pbi53YWxrZXJAaW50ZWwuY29tPiB3cm90ZToNCj4gPiBJbiBTUERLLCBub3Qg YWxsIGRyaXZlcnMgYXJlIHJlZ2lzdGVyZWQgd2l0aCBEUERLIGF0IHN0YXJ0IHVwIHRpbWUuDQo+ ID4gUHJldmlvdXNseSwgdGhhdCBtZWFudCBEUERLIGFsd2F5cyBjaG9zZSB0byBzZXQgaXRzZWxm IHVwIGluIElPVkFfUEENCj4gPiBtb2RlLiBJbnN0ZWFkLCB3aGVuIHRoZSBjb3JyZWN0IGlvdmEg Y2hvaWNlIGlzIHVuY2xlYXIgYmFzZWQgb24gdGhlDQo+ID4gZGV2aWNlcyBhbmQgZHJpdmVycyBr bm93biB0byBEUERLIGF0IHN0YXJ0IHVwIHRpbWUsIHVzZSBvdGhlciBoZXVyaXN0aWNzDQo+ID4g KHN1Y2ggYXMgd2hldGhlciAvcHJvYy9zZWxmL3BhZ2VtYXAgaXMgYWNjZXNzaWJsZSkgdG8gbWFr ZSBhIGJldHRlcg0KPiA+IGNob2ljZS4NCj4gPiANCj4gPiBUaGlzIGVuYWJsZXMgU1BESyB0byBy dW4gYXMgYW4gdW5wcml2aWxlZ2VkIHVzZXIg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