From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8C9597D04 for ; Mon, 17 Sep 2018 15:06:28 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Sep 2018 06:06:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,385,1531810800"; d="scan'208";a="84193362" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 17 Sep 2018 06:06:27 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 17 Sep 2018 06:06:27 -0700 Received: from lcsmsx153.ger.corp.intel.com (10.186.165.228) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 17 Sep 2018 06:06:26 -0700 Received: from hasmsx105.ger.corp.intel.com ([169.254.1.136]) by LCSMSX153.ger.corp.intel.com ([169.254.8.230]) with mapi id 14.03.0319.002; Mon, 17 Sep 2018 16:06:22 +0300 From: "Stojaczyk, Dariusz" To: "Burakov, Anatoly" , "dev@dpdk.org" , Santosh Shukla , "Hemant Agrawal" , Jerin Jacob CC: Maxime Coquelin , Chas Williams Thread-Topic: [PATCH v2] eal/bus: use RTE_IOVA_PA only if phys addresses are available Thread-Index: AQHURsPytTGG3Y5QpkeIQR/4UJD/9qT0JAMAgABAXeA= Date: Mon, 17 Sep 2018 13:06:21 +0000 Message-ID: References: <20180907154703.83316-1-dariusz.stojaczyk@intel.com> <20180907155843.96465-1-dariusz.stojaczyk@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmYwZjJlMTctNTkzZi00YTM2LTllMGEtZjkxZWJkY2Y5MmE0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiQTV4eWl6VFwveVNqV0lkajhvQUd1NHF3VzBEcGRxMmtKK2t0N3ROY3B4K2NFQXRGdzhrQjFQUkFOMWlXRVVKN0QifQ== x-ctpclassification: CTP_NT x-originating-ip: [10.102.11.29] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] eal/bus: use RTE_IOVA_PA only if phys addresses are available 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: , X-List-Received-Date: Mon, 17 Sep 2018 13:06:29 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQnVyYWtvdiwgQW5hdG9s eQ0KPiBTZW50OiBNb25kYXksIFNlcHRlbWJlciAxNywgMjAxOCAxMjozNCBQTQ0KPiBUbzogU3Rv amFjenlrLCBEYXJpdXN6IDxkYXJpdXN6LnN0b2phY3p5a0BpbnRlbC5jb20+OyBkZXZAZHBkay5v cmc7DQo+IFNhbnRvc2ggU2h1a2xhIDxzYW50b3NoLnNodWtsYUBjYXZpdW1uZXR3b3Jrcy5j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