From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 8B33868AF for ; Tue, 23 Sep 2014 21:06:45 +0200 (CEST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by orsmga102.jf.intel.com with ESMTP; 23 Sep 2014 12:06:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,581,1406617200"; d="scan'208,217";a="479513349" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by azsmga001.ch.intel.com with ESMTP; 23 Sep 2014 12:12:50 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 23 Sep 2014 12:12:50 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 23 Sep 2014 12:12:50 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.230]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.203]) with mapi id 14.03.0195.001; Wed, 24 Sep 2014 03:12:48 +0800 From: "Zhou, Danny" To: Jay Rolette Thread-Topic: [dpdk-dev] KNI and memzones Thread-Index: AQHP1xCqlZrfYmKh5U2QfSXMyTDBYJwOIooAgADCCID//6ZngIAAiLWQ Date: Tue, 23 Sep 2014 19:12:47 +0000 Message-ID: References: <54213D13.4040605@bisdn.de> 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 Cc: "" , "dev-team@bisdn.de" Subject: Re: [dpdk-dev] KNI and memzones X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2014 19:06:47 -0000 SXQgbG9va3MgbGlrZSBhIHR5cGljYWwgbmV0d29yayBtaWRkbGUgYm94IHVzYWdlIHdpdGggSURT L0lQUy9EUEkgc29ydCBvZiBmdW5jdGlvbmFsaXRpZXMuICBHb29kIGVub3VnaCBwZXJmb3JtYW5j ZSByYXRoZXIgdGhhbiBsaW5lLXJhdGUgcGVyZm9ybWFuY2Ugc2hvdWxkIGJlIG9rIGZvciB0aGlz IGNhc2UsIGFuZCBtdWx0aS10aHJlYWRlZCBLTkkobXVsdGlwbGUgc29mdHdhcmUgcngvdHggcXVl dWVzIGFyZSBlc3RhYmxpc2hlZCBiZXR3ZWVuIERQREsgYW5kIGEgc2luZ2xlIHZFdGggbmV0ZGV2 IHdpdGggbXVsdGlwbGUga2VybmVsIHRocmVhZHMgYWZmaW5pdGllcyB0byBzZXZlcmFsIGxjb3Jl cykgc2hvdWxkIGZpdCwgd2l0aCBsaW5lYXIgcGVyZm9ybWFuY2Ugc2NhbGluZyBpZiB5b3UgY2Fu IGFsbG9jYXRlIG11bHRpcGxlIGxjb3JlcyB0byBhY2hpZXZlIHNhdGlzZmllZCB0aHJvdWdocHV0 IGZvciByZWxhdGl2ZWx5IGJpZyBwYWNrZXRzLg0KDQpTaW5jZSBOSUMgY29udHJvbCBpcyBzdGls bCBpbiBEUERL4oCZIFBNRCBmb3IgdGhpcyBjYXNlLCBiaWZ1cmNhdGVkIGRyaXZlciBkb2VzIG5v dCBmaXQsIHVubGVzcyB5b3Ugb25seSB1c2UgRFBESyB0byByeC90eCBwYWNrZXRzIGluIHlvdXIg Ym94Lg0KDQpGcm9tOiBKYXkgUm9sZXR0ZSBbbWFpbHRvOnJvbGV0dGVAaW5maW5pdGVpby5jb21d DQpTZW50OiBXZWRuZXNkYXksIFNlcHRlbWJlciAyNCwgMjAxNC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