From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0044.outbound.protection.outlook.com [104.47.1.44]) by dpdk.org (Postfix) with ESMTP id 5D5051BE06 for ; Tue, 26 Jun 2018 19:07:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cZFP+/pFUW0sSaWXus5Wl11X6kib4CLDWEFqOpOVsf0=; b=ueppput0xg7jp9vlA4NirGBpP59BaNVo65ncKy50pCXAYygMQWm3+8exqhcUe8im8shnomGxu5fqVEzGFDt0WR2KXIFS4Oo8PP7i6lo1y+Z2g88ZI20HCESc/GD+4d9UKEMWhxZMcunMDMzIqqzDI361ngHR79kCBLsjypJwbHY= Received: from VI1PR0501MB2608.eurprd05.prod.outlook.com (10.168.137.20) by VI1PR0501MB2654.eurprd05.prod.outlook.com (10.172.13.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.23; Tue, 26 Jun 2018 17:07:26 +0000 Received: from VI1PR0501MB2608.eurprd05.prod.outlook.com ([fe80::9dd0:9bdb:fd59:b615]) by VI1PR0501MB2608.eurprd05.prod.outlook.com ([fe80::9dd0:9bdb:fd59:b615%7]) with mapi id 15.20.0884.024; Tue, 26 Jun 2018 17:07:26 +0000 From: Matan Azrad To: Jeff Guo , "stephen@networkplumber.org" , "bruce.richardson@intel.com" , "ferruh.yigit@intel.com" , "konstantin.ananyev@intel.com" , "gaetan.rivet@6wind.com" , "jingjing.wu@intel.com" , Thomas Monjalon , Mordechay Haimovsky , "harry.van.haaren@intel.com" , "qi.z.zhang@intel.com" , "shaopeng.he@intel.com" , "bernard.iremonger@intel.com" CC: "jblunck@infradead.org" , "shreyansh.jain@nxp.com" , "dev@dpdk.org" , "helin.zhang@intel.com" Thread-Topic: [PATCH V3 4/4] app/testpmd: show example to handle hot unplug Thread-Index: AQHUDWPMCmWzcB85SEKRS7u483VQVaRywyCA Date: Tue, 26 Jun 2018 17:07:26 +0000 Message-ID: References: <1498711073-42917-1-git-send-email-jia.guo@intel.com> <1530027372-24233-1-git-send-email-jia.guo@intel.com> <1530027372-24233-4-git-send-email-jia.guo@intel.com> In-Reply-To: <1530027372-24233-4-git-send-email-jia.guo@intel.com> Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [85.64.136.190] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0501MB2654; 7:w04BwH4x5JBjhw974s1Do4uizHTaMbB+/XmdcsK+B/9JfunrCnxzAwIh8eNnZeyW7jNaQTADomSV05qPsRNFv3nJNvwD+WPWylNU3jUbBlqjyHm2ei/YujPDYNjcjtBjYSodA0yoERr3997bYkJcdORSqjgBV0q9NodX1bt5wtLvMF+lWEgEXJVNo89tsCyPeGxQDgbN8LTQcEcRZn94wOaAXGy7VRa0FObXeAp5OhBAI+htn6RlLm+wqqzjot3z x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 9e62be6e-72eb-4c32-4cff-08d5db874aa8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2654; x-ms-traffictypediagnostic: VI1PR0501MB2654: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:VI1PR0501MB2654; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2654; x-forefront-prvs: 071518EF63 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(366004)(39860400002)(396003)(136003)(346002)(189003)(199004)(14444005)(9686003)(2501003)(2906002)(6116002)(7696005)(316002)(5250100002)(33656002)(14454004)(6246003)(66066001)(476003)(446003)(2900100001)(53936002)(486006)(5024004)(4326008)(11346002)(7736002)(3846002)(105586002)(68736007)(74316002)(81156014)(478600001)(106356001)(8936002)(8676002)(25786009)(7416002)(81166006)(6506007)(53546011)(102836004)(97736004)(186003)(5660300001)(6436002)(110136005)(99286004)(6346003)(76176011)(26005)(54906003)(229853002)(86362001)(305945005)(256004)(55016002)(2201001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2654; H:VI1PR0501MB2608.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-microsoft-antispam-message-info: vj0VLUBnjNeLzQqZHEYUn3QmCJ7Vkk9GgF9arT670fVGqzuHlQ165nzNLE3L6I6OPQgYlE16h7TTJN6ZSxF2SBGWWta4CGqewhXO9ciz6ZqkYBCKipybDnoqeXvznhd2VivmJ6zcKbSay1LqFkEIA5mfqkner2AD6+a+pNLkTaUl/zvWvZbWZF+AOTeSOazBY1NqVs4oy8ahpzc46NIDHgOHJqUHTZLvrtbejzTb4Ji3sZoRd6EXID4PRiMR1Ut4RsTc/C1dqw71Jy4ZiAo5Yq5K4XNCRBWWeymwnh6B1VDunz3H6s74GweDn0AKeqLCcMtP9KaptwDsYY3md1Vxxc+A3yjmgEd5Tc8dAroVklk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e62be6e-72eb-4c32-4cff-08d5db874aa8 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2018 17:07:26.0686 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2654 Subject: Re: [dpdk-dev] [PATCH V3 4/4] app/testpmd: show example to handle hot unplug 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, 26 Jun 2018 17:07:29 -0000 SGkgSmVmZg0KDQpDb250aW51ZSBzZXNzaW9uIGZyb20gbGFzdCB2ZXJzaW9uICsgbW9yZSBjb21t ZW50c1xxdWVzdGlvbi4NCg0KRnJvbTogSmVmZiBHdW8gDQo+IFNlbnQ6IFR1ZXNkYXksIEp1bmUg MjYsIDIwMTggNjozNiBQTQ0KPiBUbzogc3RlcGhlbkBuZXR3b3JrcGx1bWJlci5vcmc7IGJydWNl LnJpY2hhcmRzb25AaW50ZWwuY29tOw0KPiBmZXJydWgueWlnaXRAaW50ZWwuY29tOyBrb25zdGFu dGluLmFuYW55ZXZAaW50ZWwuY29tOw0KPiBnYWV0YW4ucml2ZXRANndpbmQuY29tOyBqaW5namlu Zy53dUBpbnRlbC5jb207IFRob21hcyBNb25qYWxvbg0KPiA8dGhvbWFzQG1vbmphbG9uLm5ldD47 IE1vcmRlY2hheSBIYWltb3Zza3kgPG1vdGloQG1lbGxhbm94LmNvbT47DQo+IE1hdGFuIEF6cmFk IDxtYXR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