From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id CB4CC58CB for ; Mon, 16 Mar 2015 15:47:33 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 16 Mar 2015 07:47:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,409,1422950400"; d="scan'208";a="467914425" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by FMSMGA003.fm.intel.com with ESMTP; 16 Mar 2015 07:40:22 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.218]) by IRSMSX104.ger.corp.intel.com ([169.254.5.145]) with mapi id 14.03.0195.001; Mon, 16 Mar 2015 14:47:31 +0000 From: "Iremonger, Bernard" To: Tetsuya Mukawa Thread-Topic: [dpdk-dev] [RFC] af_packet: support port hotplug Thread-Index: AQHQW2JtUg1URoy06Eq1E49y1KzJ+p0ZEp/QgAB66gCAAKEmIIAEo7sAgAAFGwCAAGCPEA== Date: Mon, 16 Mar 2015 14:47:30 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C2049F2FF4@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> In-Reply-To: <55069AD4.6040202@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.182] 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: Mon, 16 Mar 2015 14:47:34 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogVGV0c3V5YSBNdWthd2Eg W21haWx0bzptdWthd2FAaWdlbC5jby5qcF0NCj4gU2VudDogTW9uZGF5LCBNYXJjaCAxNiwgMjAx NSA4OjU3IEFNDQo+IFRvOiBJcmVtb25nZXIsIEJlcm5hcmQNCj4gQ2M6IEpvaG4gVy4gTGludmls bGU7IGRldkBkcGRrLm9yZw0KPiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUkZDXSBhZl9wYWNr ZXQ6IHN1cHBvcnQgcG9ydCBob3RwbHVnDQo+IA0KPiA+Pj4+PiBAQCAtODM1LDEwICs4NDgsNTMg QEAgcnRlX3BtZF9hZl9wYWNrZXRfZGV2aW5pdChjb25zdCBjaGFyICpuYW1lLCBjb25zdCBjaGFy ICpwYXJhbXMpDQo+ID4+Pj4+ICAgICAgIHJldHVybiAwOw0KPiA+Pj4+PiAgfQ0KPiA+Pj4+Pg0K PiA+Pj4+PiArc3RhdGljIGludA0KPiA+Pj4+PiArcnRlX3BtZF9hZl9wYWNrZXRfZGV2dW5pbml0 KGNvbnN0IGNoYXIgKm5hbWUpIHsNCj4gPj4+Pj4gKyAgICAgc3RydWN0IHJ0ZV9ldGhfZGV2ICpl dGhfZGV2ID0gTlVMTDsNCj4gPj4+Pj4gKyAgICAgc3RydWN0IHBtZF9pbnRlcm5hbHMgKmludGVy bmFsczsNCj4gPj4+Pj4gKyAgICAgc3RydWN0IHRwYWNrZXRfcmVxIHJlcTsNCj4gPj4+Pj4gKw0K PiA+Pj4+PiArICAgICB1bnNpZ25lZCBxOw0KPiA+Pj4+PiArDQo+ID4+Pj4+ICsgICAgIFJURV9M T0coSU5GTywgUE1ELCAiQ2xvc2luZyBBRl9QQUNLRVQgZX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