From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 72C555F0D for ; Tue, 2 Oct 2018 17:21:43 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Oct 2018 08:21:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,332,1534834800"; d="scan'208";a="95410257" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by fmsmga001.fm.intel.com with ESMTP; 02 Oct 2018 08:21:40 -0700 Received: from irsmsx107.ger.corp.intel.com ([169.254.10.56]) by IRSMSX101.ger.corp.intel.com ([169.254.1.4]) with mapi id 14.03.0319.002; Tue, 2 Oct 2018 16:21:23 +0100 From: "Iremonger, Bernard" To: "Guo, Jia" , "stephen@networkplumber.org" , "Richardson, Bruce" , "Yigit, Ferruh" , "Ananyev, Konstantin" , "gaetan.rivet@6wind.com" , "Wu, Jingjing" , "thomas@monjalon.net" , "motih@mellanox.com" , "matan@mellanox.com" , "Van Haaren, Harry" , "Zhang, Qi Z" , "He, Shaopeng" , "arybchenko@solarflare.com" , "Lu, Wenzhuo" , "Burakov, Anatoly" , "jerin.jacob@caviumnetworks.com" CC: "jblunck@infradead.org" , "shreyansh.jain@nxp.com" , "dev@dpdk.org" , "Zhang, Helin" Thread-Topic: [PATCH v12 7/7] testpmd: use hot-unplug failure handle mechanism Thread-Index: AQHUWkv8TptGGT3ILU2aDEfExrHd6aUMD/Fw Date: Tue, 2 Oct 2018 15:21:22 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C260D0BB7F@IRSMSX107.ger.corp.intel.com> References: <1498711073-42917-1-git-send-email-jia.guo@intel.com> <1538483726-96411-1-git-send-email-jia.guo@intel.com> <1538483726-96411-8-git-send-email-jia.guo@intel.com> In-Reply-To: <1538483726-96411-8-git-send-email-jia.guo@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjAyYjJmZjktZmRhOC00YzZlLWE0MTktZjRjZjNiMmM2NGY0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiRGc0dkZxZ1lsdXR3M0l6ZXdkaXB6aW1mVjNjcTZobFJ6akhIdGFOSFZlRFgxU2dyVDZOZ1BDcnZ6OVlnaEtpMiJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v12 7/7] testpmd: use hot-unplug failure handle mechanism 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: Tue, 02 Oct 2018 15:21:44 -0000 SGkgSmVmZiwNCg0KPHNuaXA+DQoNCj4gU3ViamVjdDogW1BBVENIIHYxMiA3LzddIHRlc3RwbWQ6 IHVzZSBob3QtdW5wbHVnIGZhaWx1cmUgaGFuZGxlIG1lY2hhbmlzbQ0KDQouL2RldnRvb2xzL2No ZWNrLWdpdC1sb2cuc2ggLTENCldyb25nIGhlYWRsaW5lIGxhYmVsOg0KICAgICA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