From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30040.outbound.protection.outlook.com [40.107.3.40]) by dpdk.org (Postfix) with ESMTP id 725E81BE1B for ; Sun, 1 Jul 2018 09:46:56 +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=qlAlq7DTCRycDRuddhFYrdwLJU5MMDwDgFGwlp1c3cE=; b=tc7VpH08LgXIG7Y4Ax+kPTGdtTxqJFu6XiVkW4AXgtx/g9chrGD2PantxH0vQJ0SRD6DPlr82I9K5fQ29qJns7ozv+KTnShFQmOmIay/T+pY5aAqdUfRDL/bE+/AFYKBYUn6PQyr4R5rrVQ4u2gjYl7NwAd4zra5qePCwq4QsrY= Received: from VI1PR0501MB2608.eurprd05.prod.outlook.com (10.168.137.20) by VI1PR0501MB3584.eurprd05.prod.outlook.com (10.166.198.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.24; Sun, 1 Jul 2018 07:46:54 +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.0906.026; Sun, 1 Jul 2018 07:46:54 +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 V4 8/9] app/testpmd: show example to handle hot unplug Thread-Index: AQHUD5ShApRc/UVJmkyJ3gcmutq4qKR5/MwQ Date: Sun, 1 Jul 2018 07:46:54 +0000 Message-ID: References: <1498711073-42917-1-git-send-email-jia.guo@intel.com> <1530268248-7328-1-git-send-email-jia.guo@intel.com> <1530268248-7328-9-git-send-email-jia.guo@intel.com> In-Reply-To: <1530268248-7328-9-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; VI1PR0501MB3584; 7:X7nhXDwC5cKCoL6HJWACKAv/73ZfLktfi6v2PW/8m22hy49hPkB4GvZU1+A+VFGogo6wJ4ZLIGB3OeGCwU9Vfmq9zS2185EFRYsEDj82VLUzZE63XYUD6FXHKEfvFYSAFUTvYMY/AuYy9/FvezrcjzrZBibeqn8mgHyWLtdQDXBlfZpSwrKGlAE0mMqZprbDlngxiJXoCaTNOaBG2u/vswjuvJ8fi4vBrjECTxr/O7AOsq0Amq71kQm6MTOAxfXt x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 4d018f52-3823-4e6b-5e03-08d5df26d07f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB3584; x-ms-traffictypediagnostic: VI1PR0501MB3584: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:VI1PR0501MB3584; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB3584; x-forefront-prvs: 07200C0526 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(396003)(136003)(366004)(189003)(199004)(53936002)(476003)(186003)(81166006)(76176011)(81156014)(486006)(6506007)(102836004)(26005)(7696005)(6246003)(105586002)(106356001)(9686003)(229853002)(3846002)(6116002)(478600001)(68736007)(5660300001)(7416002)(74316002)(14454004)(11346002)(7736002)(446003)(305945005)(33656002)(55016002)(2900100001)(66066001)(97736004)(2906002)(6436002)(86362001)(316002)(25786009)(54906003)(5250100002)(8676002)(99286004)(4326008)(110136005)(14444005)(8936002)(2201001)(2501003)(256004)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB3584; 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) x-microsoft-antispam-message-info: 1kNGpGU0QimGrJCn8RtkUmUIijI4f4LojosgGt0HFhDtuUmTWs+9pys9PzCxJXP4mUmfNghr4THYom9OQsIK8vkbSCjRu6QBDeV8RIDmXx4tESlnlON9f1n5XMq4dTR81prJ5nLUukOeiQTXSaKl0bcMHrSORh5lo+1R7M8ihKDs66ZXFqKSN3duBpOWSItpRlDRta5JwztaCjxQZkzsU6/YxaePws3cB9zmq23OI0jhprdp2XsgdHrE/8OMBx8nb6D/fNiVXY3B81MCe/6JaD5ME10BXyzeahXx2h25YdJ+SPER/XEaozjpQBRy5UNVXN6sytd4hqtPh7/p0sRkoKT9zV1t4crs5b1Kd1b0CHc= 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: 4d018f52-3823-4e6b-5e03-08d5df26d07f X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2018 07:46:54.0761 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB3584 Subject: Re: [dpdk-dev] [PATCH V4 8/9] 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: Sun, 01 Jul 2018 07:46:56 -0000 SGkgSmVmZg0KDQpBIGdvb2QgYWR2YW5jZSwgdGhhbmsgeW91LCBidXQgYXMgSSBzYWlkIGluIHBy ZXZpb3VzIHZlcnNpb24sIHRoaXMgcGF0Y2ggaW5zZXJ0cyBhIGJ1ZyBhbmQgdGhlIG5leHQgb25l IGZpeGVzIGl0Lg0KUGF0Y2ggOSBzaG91bGQgYmUgYmVmb3JlIHBhdGNoIDggd2hpbGUgdGhpcyBw YXRjaCBqdXN0IGFkZCAxIG1vcmUgb3B0aW9uIGZvciBFQUwgaG90cGx1Zy4NCg0KUGxlYXNlIHNl ZSAxIG1vcmUgY29tbWVudCBiZWxvdy4NCg0KRnJvbTogSmVmZiBHdW8NCj4gVXNlIHRlc3RwbWQg Zm9yIGV4YW1wbGUsIHRvIHNob3cgaG93IGFuIGFwcGxpY2F0aW9uIHNtb290aGx5IGhhbmRsZSBm YWlsdXJlDQo+IHdoZW4gZGV2aWNlIGJlaW5nIGhvdCB1bnBsdWcuIElmIGFwcCBoYXZlIGVuYWJ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