From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 648161396 for ; Wed, 7 Jun 2017 09:27:23 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 07 Jun 2017 00:27:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,310,1493708400"; d="scan'208";a="865393083" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by FMSMGA003.fm.intel.com with ESMTP; 07 Jun 2017 00:27:18 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 7 Jun 2017 00:27:17 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 7 Jun 2017 00:27:17 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.197]) with mapi id 14.03.0319.002; Wed, 7 Jun 2017 15:27:15 +0800 From: "Wu, Jingjing" To: "Guo, Jia" , "Zhang, Helin" , "Richardson, Bruce" , "Ananyev, Konstantin" , "Liu, Yuanhan" , "gaetan.rivet@6wind.com" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [RFC] Add hot plug event in rte eal interrupt and inplement it in i40e driver. Thread-Index: AQHS18p4vqfgY3j59kSp8soF+X66M6IZAy+A Date: Wed, 7 Jun 2017 07:27:14 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810D9C9A4@SHSMSX103.ccr.corp.intel.com> References: <1495986280-26207-1-git-send-email-jia.guo@intel.com> In-Reply-To: <1495986280-26207-1-git-send-email-jia.guo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [RFC] Add hot plug event in rte eal interrupt and inplement it in i40e driver. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2017 07:27:24 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogR3VvLCBKaWENCj4gU2Vu dDogU3VuZGF5LCBNYXkgMjgsIDIwMTcgMTE6NDUgUE0NCj4gVG86IFpoYW5nLCBIZWxpbiA8aGVs aW4uemhhbmdAaW50ZWwuY29tPjsgV3UsIEppbmdqaW5nIDxqaW5namluZy53dUBpbnRlbC5jb20+ OyBSaWNoYXJkc29uLA0KPiBCcnVjZSA8YnJ1Y2UucmljaGFyZHNvbkBpbnRlbC5jb20+OyBBbmFu eWV2LCBLb25zdGFudGluIDxrb25zdGFudGluLmFuYW55ZXZAaW50ZWwuY29tPjsNCj4gTGl1LCBZ dWFuaGFuIDx5dWFuaGFuLmxpdUBpbnRlbC5jb20+OyBnYWV0YW4ucml2ZXRANndpbmQuY29tDQo+ IENjOiBkZXZAZHBkay5vcmc7IEd1bywgSmlhIDxqaWEuZ3VvQGludGVsLmNvbT4NCj4gU3ViamVj dDogW2RwZGstZGV2XSBbUkZDXSBBZGQgaG90IHBsdWcgZXZlbnQgaW4gcnRlIGVhbCBpbnRlcnJ1 cHQgYW5kIGlucGxlbWVudCBpdCBpbiBpNDBlDQo+IGRyaXZlci4NCj4gDQo+IEZvciBIVyBob3Rw bHVnIGZlYXR1cmUsIHdlIGhhZCBhbHJlYWR5IGdvdCB1cHN0cmVhbSB0aGF0IHJlbW92YWwgZXZl bnQgYWRkaW5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