From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-eopbgr700076.outbound.protection.outlook.com [40.107.70.76]) by dpdk.org (Postfix) with ESMTP id 256675688; Mon, 17 Sep 2018 21:06:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xx2ViBlmvedmHfbkivRy1EcQ5eT/n29HIY8CpkO/hao=; b=Vc0r148LTTru/WZBp3j5Fvf/x7gBJXh8FuVao84RTyYzhJrZI0sIm+xbK7cJ1N3eZ3LcP5dqXS2hmg1l1WymNkJZzWIHM+sBmThTb+b0A7wSZl9OCjwaoVYWylMHxJzkHBMIZbvwyDDjKehQur36EZ4jtox7tQS1OCwTl5XAeA0= Received: from MWHPR05MB2909.namprd05.prod.outlook.com (10.168.245.143) by MWHPR05MB3645.namprd05.prod.outlook.com (10.174.251.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.11; Mon, 17 Sep 2018 19:06:31 +0000 Received: from MWHPR05MB2909.namprd05.prod.outlook.com ([fe80::cdeb:e0c:ec43:f6cb]) by MWHPR05MB2909.namprd05.prod.outlook.com ([fe80::cdeb:e0c:ec43:f6cb%9]) with mapi id 15.20.1164.014; Mon, 17 Sep 2018 19:06:31 +0000 From: Louis Luo To: Luca Boccassi , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "tiwei.bie@intel.com" , Yong Wang , "3chas3@gmail.com" <3chas3@gmail.com>, "bruce.richardson@intel.com" , "jianfeng.tan@intel.com" , "anatoly.burakov@intel.com" , "stable@dpdk.org" , Brian Russell Thread-Topic: [dpdk-dev] [PATCH 2/3] net/vmxnet3: fix vmxnet3 dev_uninit() hot-unplug Thread-Index: AQHUTrmKmR09nNmlxUu+Ow3Bk4aDOg== Date: Mon, 17 Sep 2018 19:06:30 +0000 Message-ID: References: <20180816135032.28283-1-bluca@debian.org> <20180816135032.28283-3-bluca@debian.org> In-Reply-To: <20180816135032.28283-3-bluca@debian.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/10.11.0.180909 x-originating-ip: [66.170.99.2] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MWHPR05MB3645; 20:ctdFN8AwkjYd7jtxbuiJVz/VUF34xZf/xzm0nymefibFvhy2UGQUyiHcI5j+J4DRUwDqrhK2snPqA9SrcnA+vKDlmkI+51wxLIuJpUJHj+x3OFyd17mNX5GXslifAUmEWJ03rjiG1aA7oscXOBw13H8gohXA97CPKDWwBs1IF9o= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 9e0060ba-fe4e-4d12-c4c0-08d61cd0ad8d x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:MWHPR05MB3645; x-ms-traffictypediagnostic: MWHPR05MB3645: bcl: 0 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)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231355)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699050)(76991041); SRVR:MWHPR05MB3645; BCL:0; PCL:0; RULEID:; SRVR:MWHPR05MB3645; x-forefront-prvs: 0798146F16 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(136003)(39860400002)(366004)(396003)(189003)(199004)(6486002)(316002)(8936002)(3846002)(97736004)(6436002)(6116002)(2906002)(39060400002)(81156014)(25786009)(4326008)(81166006)(110136005)(99286004)(54906003)(86362001)(6246003)(229853002)(5660300001)(68736007)(2501003)(7736002)(14454004)(305945005)(58126008)(66066001)(76176011)(102836004)(82746002)(478600001)(36756003)(7416002)(486006)(476003)(6346003)(186003)(33656002)(14444005)(2616005)(446003)(256004)(26005)(11346002)(6512007)(5250100002)(83716003)(2900100001)(53936002)(106356001)(8676002)(105586002)(6506007); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR05MB3645; H:MWHPR05MB2909.namprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=llouis@vmware.com; x-microsoft-antispam-message-info: RJp5LhYt1H2cpL/rPiqKde7JZTzYV4GeChCdDJTilipEIEiuEvH2wMIQ+mashbdVGDaf4SeFJt8X4w0yTUnfDa9X+VV3BRLTdBC9niP/8l6uc8qOh8uQ8l19DKdbUW5o1NpQZSSdFRARsiGQuH4BWamTqBGMt5e3xSg4Fi19SVtk/x5yFNjG3dHeC8t1uSZuWd+rtvuG53Eqip8fTqMTwlRaxeBeAlKFZUBv+F/Pnh59tr+9GWBg9i+NepSmHCrVhZ3OC5teZPETsap6A7/CiGPIxKnBR2SmpABdkqVemKvgkU7iwruGsU5fsrnHSsesHuwZdJtEvEvTL/PRcf6sco7a/pQ7BfzpZtyVpOY6/yc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e0060ba-fe4e-4d12-c4c0-08d61cd0ad8d X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2018 19:06:30.8697 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR05MB3645 Subject: Re: [dpdk-dev] [PATCH 2/3] net/vmxnet3: fix vmxnet3 dev_uninit() 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: Mon, 17 Sep 2018 19:06:33 -0000 SGkgTHVjYSwNCg0KV2hlbiBldGhfdm14bmV0M19kZXZfdW5pbml0KCkgaXMgY2FsbGVkLCBpcyBp dCBndWFyYW50ZWVkIHRoYXQgdm14bmV0M19kZXZfY2xvc2UvIHZteG5ldDNfZGV2X3N0b3AgbXVz dCBoYXZlIGJlZW4gY2FsbGVkPyBJJ20gbm90IGZhbWlsaWFyIHdpdGggdGhlIGhvdC1wbHVnIHBy b2NlZHVyZSwgc28ganVzdCB3b25kZXIgaWYgdGhlcmUgaXMgYW55IGNoYW5jZSB0aGF0IGV0aF92 bXhuZXQzX2Rldl91bmluaXQoKSBpcyBjYWxsZWQgd2l0aG91dCBjYWxsaW5nIHZteG5ldDNfZGV2 X2Nsb3NlLyB2bXhuZXQzX2Rldl9zdG9wLg0KDQpUaGFua3MsDQpMb3Vpcw0KDQrvu79PbiA4LzE2 LzE4LCA2OjUxIEFNLCAiZGV2IG9uIGJlaGFsZiBvZiBMdWNhIEJvY2Nhc3NpIiA8ZGV2LWJvdW5j ZXNAZHBkay5vcmcgb24gYmVoYWxmIG9mIGJsdWNhQGRlYmlhbi5vcmc+IHdyb3RlOg0KDQogICAg VGhlIHZteG5ldDMgZHJpdmVyIGNhbid0IGNhbGwgYmFjayBpbnRvIGRldl9jbG9zZSgpLCBhbmQg cG9zc2libHkNCiAgICBkZXZfc3RvcCgpLCBpbiBkZXZfdW5pbml0KCkuICBXaGVuIGRldl91bmlu aXQoKSBpcyBjYWxsZWQsIGFueXRo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