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 29F0612A8 for ; Mon, 8 Jun 2015 11:21:22 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 08 Jun 2015 02:21:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,573,1427785200"; d="scan'208";a="707162552" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga001.jf.intel.com with ESMTP; 08 Jun 2015 02:21:19 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.59]) by IRSMSX153.ger.corp.intel.com ([169.254.9.95]) with mapi id 14.03.0224.002; Mon, 8 Jun 2015 10:21:18 +0100 From: "Iremonger, Bernard" To: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [RFC] af_packet: support port hotplug Thread-Index: AQHQW2JtUg1URoy06Eq1E49y1KzJ+p0ZEp/QgAB66gCAAKEmIIAEo7sAgAAFGwCAAGCPEIAA2gWAgILO6JA= Date: Mon, 8 Jun 2015 09:21:17 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C204A2D8BA@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.182] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 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, 08 Jun 2015 09:21:23 -0000 LS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IFRldHN1eWEgTXVrYXdhIFttYWlsdG86 bXVrYXdhQGlnZWwuY28uanBdIA0KU2VudDogVHVlc2RheSwgTWFyY2ggMTcsIDIwMTUgMzo0MyBB TQ0KVG86IElyZW1vbmdlciwgQmVybmFyZA0KQ2M6IEpvaG4gVy4gTGludmlsbGU7IGRldkBkcGRr Lm9yZw0KU3ViamVjdDogUmU6IFtkcGRrLWRldl0gW1JGQ10gYWZfcGFja2V0OiBzdXBwb3J0IHBv cnQgaG90cGx1Zw0KDQpPbiAyMDE1LzAzLzE2IDIzOjQ3LCBJcmVtb25nZXIsIEJlcm5hcmQgd3Jv dGU6DQo+DQo+PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPj4gRnJvbTogVGV0c3V5YSBN dWthd2EgW21haWx0bzptdWthd2FAaWdlbC5jby5qcF0NCj4+IFNlbnQ6IE1vbmRheSwgTWFyY2gg MTYsIDIwMTUgODo1NyBBTQ0KPj4gVG86IElyZW1vbmdlciwgQmVybmFyZA0KPj4gQ2M6IEpvaG4g Vy4gTGludmlsbGU7IGRldkBkcGRrLm9yZw0KPj4gU3ViamVjdDogUmU6IFtkcGRrLWRldl0gW1JG Q10gYWZfcGFja2V0OiBzdXBwb3J0IHBvcnQgaG90cGx1Zw0KPj4NCj4+Pj4+Pj4gQEAgLTgzNSwx MCArODQ4LDUzIEBAIHJ0ZV9wbWRfYWZfcGFja2V0X2RldmluaXQoY29uc3QgY2hhciAqbmFtZSwg Y29uc3QgY2hhciAqcGFyYW1zKQ0KPj4+Pj4+PiAgICAgICByZXR1cm4gMDsNCj4+P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