From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 47ABD558B for ; Wed, 12 Oct 2016 20:19:51 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 12 Oct 2016 11:19:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,336,1473145200"; d="scan'208";a="1069563939" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga002.fm.intel.com with ESMTP; 12 Oct 2016 11:19:50 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 12 Oct 2016 11:19:49 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.160]) by fmsmsx121.amr.corp.intel.com ([169.254.6.250]) with mapi id 14.03.0248.002; Wed, 12 Oct 2016 11:19:50 -0700 From: "Wiles, Keith" To: "Yigit, Ferruh" CC: "" , Panu Matilainen , "yuanhan.liu@linux.intel.com" Thread-Topic: [PATCH v5] drivers/net:new PMD using tun/tap host interface Thread-Index: AQHSJJjDNj7jR2ZVcUO4EPJN09CmD6CllpUA Date: Wed, 12 Oct 2016 18:19:48 +0000 Message-ID: References: <1475592311-25749-1-git-send-email-keith.wiles@intel.com> <1476222688-11443-1-git-send-email-keith.wiles@intel.com> <006f1d58-cf97-41b5-d573-810ecaf4ab31@intel.com> In-Reply-To: <006f1d58-cf97-41b5-d573-810ecaf4ab31@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.12.209] Content-Type: text/plain; charset="utf-8" Content-ID: <78CA5274673B7041BA22469B55C6B253@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v5] drivers/net:new PMD using tun/tap host interface 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: Wed, 12 Oct 2016 18:19:51 -0000 DQpSZWdhcmRzLA0KS2VpdGgNCg0KPiBPbiBPY3QgMTIsIDIwMTYsIGF0IDk6NTYgQU0sIFlpZ2l0 LCBGZXJydWggPGZlcnJ1aC55aWdpdEBpbnRlbC5jb20+IHdyb3RlOg0KPiANCj4gT24gMTAvMTEv MjAxNiAxMDo1MSBQTSwgS2VpdGggV2lsZXMgd3JvdGU6DQo+PiBUaGUgcnRlX2V0aF90YXAuYyBQ TUQgY3JlYXRlcyBhIGRldmljZSB1c2luZyBUVU4vVEFQIGludGVyZmFjZXMNCj4+IG9uIHRoZSBs b2NhbCBob3N0LiBUaGUgUE1EIGFsbG93cyBmb3IgRFBESyBhbmQgdGhlIGhvc3QgdG8NCj4+IGNv bW11bmljYXRlIHVzaW5nIGEgcmF3IGRldmljZSBpbnRlcmZhY2Ugb24gdGhlIGhvc3QgYW5kIGlu DQo+PiB0aGUgRFBESyBhcHBsaWNhdGlvbi4gVGhlIGRldmljZSBjcmVhdGVkIGlzIGEgVGFwIGRl dmljZSB3aXRoDQo+PiBhIEwyIHBhY2tldCBoZWFkZXIuDQo+PiANCj4+IHY1IC0gbWVyZ2UgaW4g Y2hhbmdlcyBmcm9tIGxpc3QgcmV2aWV3IHNlZSByZWxhdGVkIGVtYWlscy4NCj4+ICAgICBmaXhl ZCBjaGVja3BhdGNoIGlzc3VlcyBhbmQgbWFueSBtaW5vciBlZGl0cw0KPj4gdjQgLSBtZXJnZSB3 aXRoIGxhdGVzdCBkcml2ZXIgY2hhbmdlcw0KPj4gdjMgLSBmaXggaW5jbHVkZXMgYnkgcmVtb3Zp bmcgaWZkZWYgZm9yIG90aGVyIHR5cGUgYmVzaWRlcyBMaW51eC4NCj4+ICAgICBGaXggdGhlIGNv cHlyaWdodCBub3R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