From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20060.outbound.protection.outlook.com [40.107.2.60]) by dpdk.org (Postfix) with ESMTP id F1DE71B529 for ; Tue, 26 Jun 2018 13:58:31 +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=aFcEzDVsxKJ3bvLLcANjK4iLwiMImCP6sXeCNx+vm9M=; b=I/R7DxouNuheKVNpTPzy1zg/a0HFf9CVo/1AmE73amH2fybJYeFpDIsgAe8RdOjOja/GFcdUKbUgAvQLv7ZMGMZoqhI+it7QZ6+AqDH1vLwFqSzT8idK0RXEABtAm/RM0dX+FJfmUTv3gi0EJX21Ie3BoPWgnyNCgTRQueVRLPs= Received: from VI1PR0501MB2608.eurprd05.prod.outlook.com (10.168.137.20) by VI1PR0501MB2080.eurprd05.prod.outlook.com (10.167.196.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.20; Tue, 26 Jun 2018 11:58:29 +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 11:58:29 +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" CC: "jblunck@infradead.org" , "shreyansh.jain@nxp.com" , "dev@dpdk.org" , "helin.zhang@intel.com" Thread-Topic: [PATCH v2 4/4] app/testpmd: show example to handle hot unplug Thread-Index: AQHUCh7pfjejw11yyk2fx69F/VoWJ6RydFjw Date: Tue, 26 Jun 2018 11:58:29 +0000 Message-ID: References: <1498711073-42917-1-git-send-email-jia.guo@intel.com> <1529668268-7462-1-git-send-email-jia.guo@intel.com> <1529668268-7462-5-git-send-email-jia.guo@intel.com> In-Reply-To: <1529668268-7462-5-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: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0501MB2080; 7:54PqLg5l3jIpG0y0XNQ6s7X34fidhHdGrxerh7OMuxrHxc7lXuzwPoerFloj/Z5Iam4cv2EUSXkk5ypQY4JgJMW9pACI+Yb9PjacmgaQMli4V6ZMWIz3X8DVzkze66VQb8WOkUtnovEAY6Gu/seYELnVkSMvWJixSik54j6p91mvGm2wPfoX3azqVAphNWkzQHnnUj3EuDZ1GngkUf0y3KcvoYzSgaCwQr8rWNkUbpFEYI5FI7N/To35h+xLWdTB x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 49bb40ec-9795-46cc-10c9-08d5db5c21fd 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:VI1PR0501MB2080; x-ms-traffictypediagnostic: VI1PR0501MB2080: 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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0501MB2080; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2080; x-forefront-prvs: 071518EF63 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(396003)(136003)(376002)(366004)(39860400002)(199004)(189003)(55016002)(8936002)(14454004)(478600001)(486006)(186003)(102836004)(97736004)(26005)(66066001)(9686003)(53546011)(2906002)(7696005)(86362001)(2201001)(476003)(53936002)(6246003)(25786009)(4326008)(76176011)(11346002)(305945005)(8676002)(316002)(7736002)(6436002)(68736007)(81156014)(81166006)(2900100001)(110136005)(54906003)(446003)(229853002)(105586002)(5250100002)(74316002)(6506007)(2501003)(106356001)(99286004)(5660300001)(33656002)(6116002)(3846002)(7416002)(14444005)(256004)(5024004)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2080; H:VI1PR0501MB2608.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: xeynL7l1JBT/u/407UbA0HoDW9E6eGOB6kaPProsnRrJDHoOD5F/Jib306jHA8si4sJ5V4JZnEBKmi9rwJ70i+NB1gN+3X3Doe3yK+yH9UUpsNgIBhyF2Pm3AehBaYjbnxqk1q7jvQv5zesRElks/98t2JlOSKGA2fElnwCFRG//U1HUBcNu1v52oPWg7zOQWtqEeZuhcCkDrVRzUYUxJZ9Ct2+42IIRCBrWCod67ybi4M6HULV69o9dS9t3tmuuxf9njWoj2GwFSPaMNM2sZjLDWA5W1XEdHYvMS+2lmV6VFX6kR7X8/QgSs6EMGh0a0H786i06erP+1bKE7hr1PzO1Cv/qzkoawLGGFqI75PA= 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: 49bb40ec-9795-46cc-10c9-08d5db5c21fd X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2018 11:58:29.5250 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2080 Subject: Re: [dpdk-dev] [PATCH v2 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 11:58:32 -0000 SGkgSmVmZg0KDQpQbGVhc2Ugc2VlIGNvbW1lbnRzLi4uDQoNCkZyb206IEplZmYgR3VvDQo+IFNl bnQ6IEZyaWRheSwgSnVuZSAyMiwgMjAxOCAyOjUxIFBNDQo+IFRvOiBzdGVwaGVuQG5ldHdvcmtw bHVtYmVyLm9yZzsgYnJ1Y2UucmljaGFyZHNvbkBpbnRlbC5jb207DQo+IGZlcnJ1aC55aWdpdEBp bnRlbC5jb207IGtvbnN0YW50aW4uYW5hbnlldkBpbnRlbC5jb207DQo+IGdhZXRhbi5yaXZldEA2 d2luZC5jb207IGppbmdqaW5nLnd1QGludGVsLmNvbTsgVGhvbWFzIE1vbmphbG9uDQo+IDx0aG9t YXNAbW9uamFsb24ubmV0PjsgTW9yZGVjaGF5IEhhaW1vdnNreSA8bW90aWhAbWVsbGFub3guY29t PjsNCj4gTWF0YW4gQXpyYWQgPG1hdGFuQG1lbGxhbm94LmNvbT47IGhhcnJ5LnZhbi5oYWFyZW5A aW50ZWwuY29tOw0KPiBx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