From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 9DF642C54 for ; Tue, 30 Oct 2018 04:20:23 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Oct 2018 20:20:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,442,1534834800"; d="scan'208,217";a="82590795" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 29 Oct 2018 20:20:22 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 29 Oct 2018 20:20:22 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 29 Oct 2018 20:20:21 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.117]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.102]) with mapi id 14.03.0415.000; Tue, 30 Oct 2018 11:20:18 +0800 From: "Lin, Xueqin" To: Alejandro Lucero , "Yao, Lei A" , Thomas Monjalon CC: dev , "Xu, Qian Q" , "Burakov, Anatoly" , "Yigit, Ferruh" , "Zhang, Qi Z" Thread-Topic: [dpdk-dev] [PATCH v3 0/6] use IOVAs check based on DMA mask Thread-Index: AQHUbwHVCqPw4mslyE66+0cqAeEf9aU14R4g//+BeYCAAJNOUP//fw2AgAAGWoCAAAFZAIAAF0MAgAACGoCAABM6AIAAi+4w//+ArgAALSJAoA== Date: Tue, 30 Oct 2018 03:20:18 +0000 Message-ID: <0D300480287911409D9FF92C1FA2A3355B442C48@SHSMSX104.ccr.corp.intel.com> References: <1538743527-8285-1-git-send-email-alejandro.lucero@netronome.com> <2737161.TvyDVilZt4@xps> <2DBBFF226F7CF64BAFCA79B681719D954502B94F@shsmsx102.ccr.corp.intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v3 0/6] use IOVAs check based on DMA mask 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: Tue, 30 Oct 2018 03:20:24 -0000 SGkgTHVjZXJvJlRob21hcywNCg0KRmluZCB0aGUgcGF0Y2ggY2Fu4oCZdCBmaXggbXVsdGktcHJv Y2VzcyBjYXNlcy4NClN0ZXBzOg0KDQoxLiAgICAgICBTZXR1cCBwcmltYXJ5IHByb2Nlc3Mgc3Vj Y2Vzc2Z1bGx5DQoNCi4vaG90cGx1Z19tcCAtLXByb2MtdHlwZT1hdXRvDQoNCg0KDQoyLiAgICAg ICBGYWlsIHRvIHNldHVwIHNlY29uZGFyeSBwcm9jZXNzDQoNCi4vaG90cGx1Z19tcCAtLXByb2Mt dHlwZT1hdXRvDQoNCkVBTDogRGV0ZWN0ZWQgODggbGNvcmUocykNCg0KRUFMOiBEZXRlY3RlZCAy IE5VTUEgbm9kZXMNCg0KRUFMOiBBdXRvLWRldGVjdGVkIHByb2Nlc3MgdHlwZTogU0VDT05EQVJZ DQoNCkVBTDogTXVsdGktcHJvY2VzcyBzb2NrZXQgL3Zhci9ydW4vZHBkay9ydGUvbXBfc29ja2V0 XzE0NzIxMl8yYmZlMDhlZTg4ZDIzDQoNClNlZ21lbnRhdGlvbiBmYXVsdCAoY29yZS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