From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30057.outbound.protection.outlook.com [40.107.3.57]) by dpdk.org (Postfix) with ESMTP id 73F80DE3 for ; Fri, 25 May 2018 08:40:02 +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=ybqLv16SU9y+mTNj8xDRUE8UgT9D44PcrWbyBoeG/Gw=; b=rWltS5DnaLQVY2ClRwJ4stuBZzNFf3pgl3TF2aG47DZoQPHFB0yofocYabiBhACNeznqw+ipvw+lkRr8t5WKIsTRdGpkr/A45zfJ48am+AIgX8K2+5JI/bwRcE0meT0JjxhxAwVbVDVj/ZsesOI9M78j5U3KAO/x5T6ow4k4cWM= Received: from VI1PR05MB1678.eurprd05.prod.outlook.com (10.165.235.152) by VI1PR05MB4752.eurprd05.prod.outlook.com (20.176.4.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.797.11; Fri, 25 May 2018 06:40:01 +0000 Received: from VI1PR05MB1678.eurprd05.prod.outlook.com ([fe80::74c1:f93d:bd5b:df1b]) by VI1PR05MB1678.eurprd05.prod.outlook.com ([fe80::74c1:f93d:bd5b:df1b%14]) with mapi id 15.20.0797.011; Fri, 25 May 2018 06:40:01 +0000 From: "Xueming(Steven) Li" To: Yongseok Koh CC: Shahaf Shuler , "dev@dpdk.org" , Adrien Mazarguil Thread-Topic: [PATCH] net/mlx5: fix port dead lock when port shutdown Thread-Index: AQHT83PynapjQZrDoUSsOrwqc+4F7qQ/M4mAgAC/HQCAAAy7UA== Date: Fri, 25 May 2018 06:40:01 +0000 Message-ID: References: <20180524152005.1833-1-xuemingl@mellanox.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xuemingl@mellanox.com; x-originating-ip: [180.174.142.249] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR05MB4752; 7:eQkgKswlTjJmWPfV79KYuWK9sMXD4bQrbylUlAgjIa3EV+TC1uaL7PoXKVgF3btnNe+lkiYAH7FWmTotO3MDLcwlb1xfIovt+Q5R0lGu9xrz8eYxFrMNbopCIJ6rLM/X8M/zlvYvT7iQmU49DNNa57W92Z5OZm+gAAARd/OFW4WoQtSfKPmRzCJ2Gdu+dX6tM2vU7TPmZlQYPzYNL7+ffn/EGkahLb+ZeFk6iYERmI7MzLG6sTBMD6YXBTyUUAp4 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR05MB4752; x-ms-traffictypediagnostic: VI1PR05MB4752: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:VI1PR05MB4752; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB4752; x-forefront-prvs: 06833C6A67 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(376002)(39380400002)(39860400002)(396003)(366004)(346002)(199004)(189003)(13464003)(76176011)(316002)(305945005)(2940100002)(99286004)(7696005)(2900100001)(81166006)(59450400001)(81156014)(8676002)(8936002)(26005)(9686003)(6306002)(6436002)(5250100002)(229853002)(478600001)(14454004)(55016002)(966005)(25786009)(3660700001)(2906002)(7736002)(74316002)(3280700002)(86362001)(4326008)(53376002)(6246003)(6862004)(53936002)(33656002)(6116002)(3846002)(68736007)(5660300001)(6636002)(97736004)(476003)(486006)(66066001)(6506007)(102836004)(54906003)(53546011)(105586002)(106356001)(446003)(11346002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB4752; H:VI1PR05MB1678.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: 6yP7MQp1BLy/F+Kcz51Ek/14sFaZAclaxCb+DYq301BsZqwYCBrz0CWdnN2qS8FhNNM9p6fcGXMwlc3Sz6QTrRr90sQOvEHn1vJjmNXk+ihhOuPFCygUDO6i00AO2ew8ueA9j3LiUCBSMOAEZbEsPZASbu+bq3fXY43w/TlYLJ7yTv9XMSQ8Yxl0P4bFb/RT spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 256271a6-1a16-4bed-68cc-08d5c20a5755 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 256271a6-1a16-4bed-68cc-08d5c20a5755 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2018 06:40:01.2219 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4752 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix port dead lock when port shutdown X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List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