From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 41FED1B1A0 for ; Thu, 4 Oct 2018 12:31:22 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Oct 2018 03:31:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,338,1534834800"; d="scan'208";a="76133946" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by fmsmga008.fm.intel.com with ESMTP; 04 Oct 2018 03:31:19 -0700 Received: from irsmsx107.ger.corp.intel.com ([169.254.10.56]) by IRSMSX154.ger.corp.intel.com ([169.254.12.130]) with mapi id 14.03.0319.002; Thu, 4 Oct 2018 11:31:18 +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 v13 7/7] app/testpmd: use hotplug failure handler Thread-Index: AQHUW6t2E9zsTJcyoUiXg5jHyhJpzaUO4XjQ Date: Thu, 4 Oct 2018 10:31:17 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C260D0C830@IRSMSX107.ger.corp.intel.com> References: <1498711073-42917-1-git-send-email-jia.guo@intel.com> <1538634659-91335-1-git-send-email-jia.guo@intel.com> <1538634659-91335-8-git-send-email-jia.guo@intel.com> In-Reply-To: <1538634659-91335-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTNkN2I5ZmQtNDJhMS00ODZiLWE3MTAtNGExNjE4MWJjYmEyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoib0xHZ25qMVVGVXJ1RmF4V0NiWFwvT1VlVlF5N3FaQWd1aGpxTW1rcjFUcWxOeEdcL1h5NnpMV0Rkb1d0OTZ0XC93byJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action 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] [PATCH v13 7/7] app/testpmd: use hotplug failure handler 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, 04 Oct 2018 10:31:23 -0000 SGkgSmVmZiwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBHdW8sIEpp YQ0KPiBTZW50OiBUaHVyc2RheSwgT2N0b2JlciA0LCAyMDE4IDc6MzEgQU0NCj4gVG86IHN0ZXBo ZW5AbmV0d29ya3BsdW1iZXIub3JnOyBSaWNoYXJkc29uLCBCcnVjZQ0KP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