From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40075.outbound.protection.outlook.com [40.107.4.75]) by dpdk.org (Postfix) with ESMTP id 34D85DE3 for ; Fri, 25 May 2018 08:04:04 +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=eqdzWnGPolE59IkjrXpOiIHAhFA5s+6X3bhiqvPHP0k=; b=otWI7/1ofJszcF/2xKGjVtSLTXtLIT1V5FRR3jKtCumcxf/JA/j5uiScZIz+PEMhbbqYyf7Su8ejnitvzkvVgGb71Fv6iB4z3sAARvK8KVGgdMrIk0fy5cqbwZwLNVxMj9IJXQNHr1mbsUWcHJqruKjh6lMbeGqGEmA1mch6AF4= Received: from VI1PR05MB1678.eurprd05.prod.outlook.com (10.165.235.152) by VI1PR05MB1679.eurprd05.prod.outlook.com (10.165.235.153) 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:04:02 +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:04:02 +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/HQA= Date: Fri, 25 May 2018 06:04: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; VI1PR05MB1679; 7:bxf1BlcjsgEZ9X7ZE5wNkxta0bKiI9Mam260NA85n18Cj0gqTo4uPhmWUAPe2G01mtfMiXJ+9GAVveQvUu1YXJe63QiIvQdZizd+Z715h89Tzvh4rvDiwj6iHbl0hNgzrP6DAAMRU73pRKTf01INxCsp8IWcxeui8bP0huk7Uur5NrfeptGW/yyr4jafYrwcVWvhfM9eqFVYv1MuNoAkrT/jxLtoUyitamqA4kO7whfJtxMOsQzV7rOTgV1nEqH2 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:VI1PR05MB1679; x-ms-traffictypediagnostic: VI1PR05MB1679: 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)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:VI1PR05MB1679; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB1679; x-forefront-prvs: 06833C6A67 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(39860400002)(39380400002)(376002)(366004)(396003)(346002)(13464003)(199004)(189003)(54906003)(68736007)(476003)(446003)(66066001)(6116002)(3846002)(486006)(2900100001)(105586002)(11346002)(86362001)(25786009)(2906002)(97736004)(55016002)(6306002)(9686003)(5250100002)(478600001)(3280700002)(99286004)(4326008)(305945005)(6862004)(5660300001)(6246003)(53376002)(81166006)(81156014)(229853002)(33656002)(102836004)(316002)(7736002)(7696005)(966005)(3660700001)(53936002)(26005)(106356001)(6636002)(74316002)(6506007)(14454004)(8936002)(8676002)(6436002)(76176011)(59450400001)(53546011)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB1679; 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: D5cNqXwpyNm51AnRhAkTA9JdyrZpZi0acA+kdW/Of3KBQeRMahfxKP0PhYQkYbE4hHIHQnJX63vuauzL6e1Bqmm3iAzgralSazziAXWiAprOhfJ7DbP1N6kMBIYgiLJxUP3WoxCrZU7lzI41FDn98rLyaQAUzeLNgueIyYlvoiQVHSPYCXDGg9nTWu1leef7 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: 53c2f6d7-a9bf-40ac-e18e-08d5c2055056 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53c2f6d7-a9bf-40ac-e18e-08d5c2055056 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2018 06:04:02.0351 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB1679 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-Unsubscribe: , List-Archive: List-Post: List-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