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 7062F58F1 for ; Thu, 19 Mar 2015 12:44:25 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 19 Mar 2015 04:44:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,429,1422950400"; d="scan'208";a="682421321" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by fmsmga001.fm.intel.com with ESMTP; 19 Mar 2015 04:44:14 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.218]) by IRSMSX152.ger.corp.intel.com ([169.254.6.205]) with mapi id 14.03.0195.001; Thu, 19 Mar 2015 11:44:14 +0000 From: "Iremonger, Bernard" To: Tetsuya Mukawa Thread-Topic: [dpdk-dev] [RFC] af_packet: support port hotplug Thread-Index: AQHQW2JtUg1URoy06Eq1E49y1KzJ+p0ZEp/QgAB66gCAAKEmIIAEo7sAgAAFGwCAAGCPEIAA2gWAgAOqhaA= Date: Thu, 19 Mar 2015 11:44:13 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C2049F3AC4@IRSMSX108.ger.corp.intel.com> References: <1426012584-3614-1-git-send-email-linville@tuxdriver.com> <8CEF83825BEC744B83065625E567D7C2049F26C7@IRSMSX108.ger.corp.intel.com> <8CEF83825BEC744B83065625E567D7C2049F282A@IRSMSX108.ger.corp.intel.com> <5506968C.4000908@igel.co.jp> <55069AD4.6040202@igel.co.jp> <8CEF83825BEC744B83065625E567D7C2049F2FF4@IRSMSX108.ger.corp.intel.com> <5507A2B7.1040102@igel.co.jp> In-Reply-To: <5507A2B7.1040102@igel.co.jp> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [RFC] af_packet: support port hotplug 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: Thu, 19 Mar 2015 11:44:26 -0000 DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFRldHN1eWEgTXVrYXdhIFtt YWlsdG86bXVrYXdhQGlnZWwuY28uanBdDQo+IFNlbnQ6IFR1ZXNkYXksIE1hcmNoIDE3LCAyMDE1 IDM6NDMgQU0NCj4gVG86IElyZW1vbmdlciwgQmVybmFyZA0KPiBDYzogSm9obiBXLiBMaW52aWxs ZTsgZGV2QGRwZGsub3JnDQo+IFN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtSRkNdIGFmX3BhY2tl dDogc3VwcG9ydCBwb3J0IGhvdHBsdWcNCj4gDQo+IE9uIDIwMTUvMDMvMTYgMjM6NDcsIElyZW1v bmdlciwgQmVybmFyZCB3cm90ZToNCj4gPg0KPiA+PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0t LQ0KPiA+PiBGcm9tOiBUZXRzdXlhIE11a2F3YSBbbWFpbHRvOm11a2F3YUBpZ2VsLmNvLmpwXQ0K PiA+PiBTZW50OiBNb25kYXksIE1hcmNoIDE2LCAyMDE1IDg6NTcgQU0NCj4gPj4gVG86IElyZW1v bmdlciwgQmVybmFyZA0KPiA+PiBDYzogSm9obiBXLiBMaW52aWxsZTsgZGV2QGRwZGsub3JnDQo+ ID4+IFN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtSRkNdIGFmX3BhY2tldDogc3VwcG9ydCBwb3J0 IGhvdHBsdWcNCj4gPj4NCj4gPj4+Pj4+PiBAQCAtODM1LDEwICs4NDgsNTMgQEAgcnRlX3BtZF9h Zl9wYWNrZXRfZGV2aW5pdChjb25zdCBjaGFyICpuYW1lLC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