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 9B1F6A0597; Wed, 8 Apr 2020 02:55:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E73B91BFD7; Wed, 8 Apr 2020 02:55:29 +0200 (CEST) Received: from huawei.com (szxga02-in.huawei.com [45.249.212.188]) by dpdk.org (Postfix) with ESMTP id 935C81BFC0; Wed, 8 Apr 2020 02:55:28 +0200 (CEST) Received: from DGGEMM405-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id CD96657FA8FD7A801A1D; Wed, 8 Apr 2020 08:55:26 +0800 (CST) Received: from DGGEMM533-MBX.china.huawei.com ([169.254.5.250]) by DGGEMM405-HUB.china.huawei.com ([10.3.20.213]) with mapi id 14.03.0487.000; Wed, 8 Apr 2020 08:55:17 +0800 From: wangyunjian To: Ferruh Yigit , "dev@dpdk.org" CC: "keith.wiles@intel.com" , "Lilijun (Jerry)" , xudingke , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 5/5] net/tap: fix netlink socket file descriptor check before close Thread-Index: AQHWDJRVc1FGsfBb3USV14dyGx9SBahtRRYAgAEh4qA= Date: Wed, 8 Apr 2020 00:55:16 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60CF5B54B@DGGEMM533-MBX.china.huawei.com> References: <1586233414-7644-1-git-send-email-wangyunjian@huawei.com> <7b9013ef-6b0b-1179-724b-489fab3ec94d@intel.com> In-Reply-To: <7b9013ef-6b0b-1179-724b-489fab3ec94d@intel.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.173.251.152] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH v3 5/5] net/tap: fix netlink socket file descriptor check before close 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBGZXJydWggWWlnaXQgW21haWx0 bzpmZXJydWgueWlnaXRAaW50ZWwuY29tXQ0KPiBTZW50OiBUdWVzZGF5LCBBcHJpbCA3LCAyMDIw IDExOjM2IFBNDQo+IFRvOiB3YW5neXVuamlhbiA8d2FuZ3l1bmppYW5AaHVhd2VpLmNvbT47IGRl dkBkcGRrLm9yZw0KPiBDYzoga2VpdGgud2lsZXNAaW50ZWwuY29tOyBMaWxpanVuIChKZXJyeSkg PGplcnJ5LmxpbGlqdW5AaHVhd2VpLmNvbT47IHh1ZGluZ2tlDQo+IDx4dWRpbmdrZUBodWF3ZWku Y29tPjsgc3RhYmxlQGRwZGsub3JnDQo+IFN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtQQVRDSCB2 MyA1LzVdIG5ldC90YXA6IGZpeCBuZXRsaW5rIHNvY2tldCBmaWxlIGRlc2NyaXB0b3INCj4gY2hl Y2sgYmVmb3JlIGNsb3NlDQo+IA0KPiBPbiA0LzcvMjAyMCA1OjIzIEFNLCB3YW5neXVuamlhbiB3 cm90ZToNCj4gPiBGcm9tOiBZdW5qaWFuIFdhbmcgPHdhbmd5dW5qaWFuQGh1YXdlaS5jb20+DQo+ ID4NCj4gPiBUaGUgImludGVybmFscy0+bmxza19mZCIgaXMgcG9zc2libHkgYSB6ZXJvIHZhbHVl LiBFcnJvciBjb21wYXJpc29uDQo+ID4gc2hvdWxkIGNoZWNrIGZvciBuZWdhdGl2ZSBmZC4NCj4g Pg0KPiA+IEZpeGVzOiBkZTk2ZmU2OGFlOTUgKCJuZXQvdGFwOiBhZGQgYmFzaWMgZmxvdyBBUEkg cGF0dGV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