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 1294D29CA for ; Thu, 29 Jun 2017 04:25:32 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2017 19:25:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,278,1496127600"; d="scan'208";a="104916286" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga002.jf.intel.com with ESMTP; 28 Jun 2017 19:25:31 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 28 Jun 2017 19:25:31 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 28 Jun 2017 19:25:31 -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; Thu, 29 Jun 2017 10:25:29 +0800 From: "Wu, Jingjing" To: "Guo, Jia" , "Zhang, Helin" CC: "dev@dpdk.org" Thread-Topic: [PATCH v2 1/2] eal: add uevent api for hot plug Thread-Index: AQHS7/8+e7MDWxPb8Ei8IJ5gFaNutaI7FyAg Date: Thu, 29 Jun 2017 02:25:29 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810DB5864@SHSMSX103.ccr.corp.intel.com> References: <1495986280-26207-1-git-send-email-jia.guo@intel.com> <1498648044-57541-1-git-send-email-jia.guo@intel.com> In-Reply-To: <1498648044-57541-1-git-send-email-jia.guo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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] [PATCH v2 1/2] eal: add uevent api for hot plug 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: Thu, 29 Jun 2017 02:25:33 -0000 PiArDQo+ICtpbnQNCj4gK3J0ZV91ZXZlbnRfY29ubmVjdCh2b2lkKQ0KPiArew0KPiArCXN0cnVj dCBzb2NrYWRkcl9ubCBhZGRyOw0KPiArCWludCByZXQ7DQo+ICsJaW50IG5ldGxpbmtfZmQgPSAt MTsNCj4gKwlpbnQgc2l6ZSA9IDY0ICogMTAyNDsNCj4gKwlpbnQgbm9uYmxvY2sgPSAxOw0KPiAr CW1lbXNldCgmYWRkciwgMCwgc2l6ZW9mKGFkZHIpKTsNCj4gKwlhZGRyLm5sX2ZhbWlseSA9IEFG X05FVExJTks7DQo+ICsJYWRkci5ubF9waWQgPSAwOw0KPiArCWFkZHIubmxfZ3JvdXBzID0gMHhm ZmZmZmZmZjsNCj4gKw0KPiArCW5ldGxpbmtfZmQgPSBzb2NrZXQoUEZfTkVUTElOSywgU09DS19E R1JBTSwNCj4gTkVUTElOS19LT0JKRUNUX1VFVkVOVCk7DQo+ICsJaWYgKG5ldGxpbmtfZmQgPCAw KQ0KPiArCQlyZXR1cm4gLTE7DQo+ICsNCj4gKwlSVEVfTE9HKEVSUiwgRUFMLA0KPiArCSJuZXRs aW5rX2ZkIGlzICVkXG4iLCBuZXRsaW5rX2ZkKTsNCklzIHRoaXMgYSBFUlIgbG9nPw0KDQo+ICsN Cj4gKwlzZXRzb2Nrb3B0KG5ldGxpbmtfZmQsIFNPTF9TT0NLRVQsIFNPX1JDVkJVRkZPUkNFLCAm c2l6ZSwNCj4gK3NpemVvZihzaXplKSk7DQo+ICsNCj4gKwlyZXQgPSBpb2N0bChuZXR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