From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E813FA04C1; Wed, 20 Nov 2019 14:44:42 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 45B452142; Wed, 20 Nov 2019 14:44:42 +0100 (CET) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00044.outbound.protection.outlook.com [40.107.0.44]) by dpdk.org (Postfix) with ESMTP id 9136227D; Wed, 20 Nov 2019 14:44:41 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eO0kIqe9slHwwjZ3Xz3tk/dk4gqORvN7O5MUm29u6emMt31cU2twboT0/hzJJVxGFKH3VSWvP6LGUsk6UZ8dNV3Tke4zL3XUSWwcjRt0wMXVoSjPf5Cq1aiJyWg0LC37YIP7FlsfPSdch/YL2fm5J0n5TcnUHQADLhCzj2A3QzzRuFErq8M7z6YsgER0PsRTg7c2Nae+AEIIN5dP1ow2BLlctcATO+CsqPyuvNs8Kx9SCbdMeCMgwgW33JdOPDw8t7yH+kFaDRK9wX/5GfKA0/PzX1YVg5TlPZC40CuQrfsz/13bhHSDLdh5k3HLgOLi7lamab6wxwcsh0jHUa/35A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ySbv1QrqdocGlyK/FiUQZ4sCIawqqS0kNIs/IPEWZfI=; b=NIIrMTyW9S5raqqUNNSno5Ppyd4FIJjxkIAT0E96KV/5CyKrb5BEC0F4ZJBgzOJ+UrS8MFhomDW6lABYnQUZgwpa0x+ehTTobtrzDmKWXTBreY4tHH0aexcC/O3YuS0EzGrv0lNeMJz9H55aGSMNn3d+Su59Fap/d1PWXjoHQim3JgrA4u9d89zTePxDX2lA+P6lrqKMvWYa83C2ypHhlCx6RZohFvAW0plXA4uzZJZ+vT3d9OOO55Ap/rCWVdTKuToe15CK5LytgDhpyJVMTQkguGjDYuLAEj45g0fELtN31Hqn31p0TvsXZsamoGeDxtAGaqyYUu8Afgxjy+2CGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none 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=ySbv1QrqdocGlyK/FiUQZ4sCIawqqS0kNIs/IPEWZfI=; b=gK/7Bx2xNOePIDkElUsO7ucXm8lf6n73mCaftEVSzrBDSldxn6yQlZBo4Kczeg3ckW9uMet1OR+RDx6BJ2XYPaLwNvW17tFrK+YIzIN5M1dQlcandG406I3iR6BQwHR4zxTrrrcl9tf1yUETisP3/4fSGV/uY9XVPaGWrXTFgX4= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3857.eurprd05.prod.outlook.com (52.133.49.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.16; Wed, 20 Nov 2019 13:44:40 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::cd03:4e5a:4ef7:6ea5]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::cd03:4e5a:4ef7:6ea5%6]) with mapi id 15.20.2474.015; Wed, 20 Nov 2019 13:44:40 +0000 From: Matan Azrad To: David Marchand , Thomas Monjalon CC: dev , "mukawa@igel.co.jp" , dpdk stable Thread-Topic: [dpdk-stable] [PATCH v2] bus/pci: fix driver detach clear Thread-Index: AQHVn6MAXJNDgV/ZRUm+0jCB8MPxK6eUEYkg Date: Wed, 20 Nov 2019 13:44:40 +0000 Message-ID: References: <1573548459-6931-1-git-send-email-matan@mellanox.com> <1574243271-27734-1-git-send-email-matan@mellanox.com> In-Reply-To: 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-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 04c143ab-90af-4e0f-06e4-08d76dbfcacc x-ms-traffictypediagnostic: AM0PR0502MB3857: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 02272225C5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(39860400002)(396003)(346002)(366004)(189003)(199004)(446003)(11346002)(26005)(86362001)(76176011)(25786009)(53546011)(102836004)(6506007)(7696005)(6116002)(3846002)(14454004)(4326008)(81156014)(81166006)(8936002)(229853002)(99286004)(8676002)(54906003)(110136005)(316002)(6246003)(476003)(2906002)(66066001)(186003)(6436002)(9686003)(486006)(55016002)(478600001)(66556008)(64756008)(66476007)(66946007)(71200400001)(71190400001)(305945005)(76116006)(33656002)(66446008)(256004)(7736002)(5024004)(14444005)(52536014)(74316002)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3857; H:AM0PR0502MB4019.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Cs7lJhzDv/1Hg+vmWZrfKDN+DEpsOrL6XpK6WFDvHfxBTYd3vVqCUgnGMMuDtAHIQuro/RTfyY/h66olftVDZ+sATzpM7Gd4Oa+ijNKO866N1qgWoqRQzB0utdnstWmsbnYy+p6QMIN7RK2SndlR9Gq2GeaWp//XdbknRGKs0sW69d1CmgOj9AchDRR9hp2eTzkP6B5QEGB2Y90ExUFo30R1St0levnHj7agOIteCZ+luzDUMgElJq+65xz98iSVfVt6v781BFeFv8K8Zc4V7g1KOeR1xku8kNG02vfEXXfz3nIDZ/OTj/mgz3yqG0TdV4cZmKIFLkogD6TlVsRC0mnm78ujyqQAF+W9tN9DyhSqPX7RItAIDHWgr9vfsmq3IEW9GvPdvjLMS9nGgTfYH4f107dzwepw+6J/zFCPaINgEvJUllNWqGNWDJAPaj/J x-ms-exchange-transport-forked: True 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: 04c143ab-90af-4e0f-06e4-08d76dbfcacc X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Nov 2019 13:44:40.3165 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wKdUUOj//n39VLs7bv6oNHH0h/u6SB4QuXYXFRNS9B7g8gmhul8dMlVI9XUTUiI6AI8KATsqlL8aXzL+ICUKwQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3857 Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v2] bus/pci: fix driver detach clear 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgRGF2aWQNCg0KRnJvbTogRGF2aWQgTWFyY2hhbmQNCj4gT24gV2VkLCBOb3YgMjAsIDIwMTkg YXQgMTA6NDggQU0gTWF0YW4gQXpyYWQgPG1hdGFuQG1lbGxhbm94LmNvbT4NCj4gd3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