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 8A1F8A0530; Tue, 21 Jan 2020 02:36:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0DB7F1BFD0; Tue, 21 Jan 2020 02:36:30 +0100 (CET) Received: from huawei.com (szxga01-in.huawei.com [45.249.212.187]) by dpdk.org (Postfix) with ESMTP id 642BC1BFCD; Tue, 21 Jan 2020 02:36:28 +0100 (CET) Received: from DGGEMM405-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 08A5F41A87F8FF8A7FDD; Tue, 21 Jan 2020 09:36:27 +0800 (CST) Received: from DGGEMM533-MBX.china.huawei.com ([169.254.5.240]) by DGGEMM405-HUB.china.huawei.com ([10.3.20.213]) with mapi id 14.03.0439.000; Tue, 21 Jan 2020 09:36:18 +0800 From: wangyunjian To: Ferruh Yigit , "dev@dpdk.org" , "keith.wiles@intel.com" CC: xudingke , "stable@dpdk.org" Thread-Topic: [dpdk-stable] [dpdk-dev] [PATCH] net/tap: fix memory leak when unregister intr handler Thread-Index: AQHVz2vvpobvsvwQ70WjqerVdtyaOKfy+WSAgAFcDgA= Date: Tue, 21 Jan 2020 01:36:18 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60CE41316@DGGEMM533-MBX.china.huawei.com> References: <1579509045-18296-1-git-send-email-wangyunjian@huawei.com> <78f8e06b-092b-51e2-677f-358e4f4162c8@intel.com> In-Reply-To: <78f8e06b-092b-51e2-677f-358e4f4162c8@intel.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.133.209.164] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH] net/tap: fix memory leak when unregister intr handler 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 bzpmZXJydWgueWlnaXRAaW50ZWwuY29tXQ0KPiBTZW50OiBNb25kYXksIEphbnVhcnkgMjAsIDIw MjAgODo0MyBQTQ0KPiBUbzogd2FuZ3l1bmppYW4gPHdhbmd5dW5qaWFuQGh1YXdlaS5jb20+OyBk ZXZAZHBkay5vcmc7DQo+IGtlaXRoLndpbGVzQGludGVsLmNvbQ0KPiBDYzogeHVkaW5na2UgPHh1 ZGluZ2tlQGh1YXdlaS5jb20+OyBzdGFibGVAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtkcGRr LXN0YWJsZV0gW2RwZGstZGV2XSBbUEFUQ0hdIG5ldC90YXA6IGZpeCBtZW1vcnkgbGVhayB3aGVu DQo+IHVucmVnaXN0ZXIgaW50ciBoYW5kbGVyDQo+IA0KPiBPbiAxLzIwLzIwMjAgODozMCBBTSwg WXVuamlhbiBXYW5nIHdyb3RlOg0KPiA+IFRoZSByZXR1cm4gY2hlY2sgb2YgZnVuY3Rpb24gdGFw X2xzY19pbnRyX2hhbmRsZV9zZXQoKSBpcyB3cm9uZywgaXQgc2hvdWxkDQo+ID4gYmUgMCBvciBh IHBvc2l0aXZlIG51bWJlciBpZiBzdWNjZXNzLiBTbyB0aGUgaW50cl9oYW5kbGUtPmludHJfdmVj IHdhcyBub3QNCj4gPiBiZWVuIGZyZWVkIHdoZW4gdGFwX2xzY19pbnRyX2hhbmRsZV9zZXQoKSBy ZXR1cm5lZCBhIHBvc2l0aXZlIG51bWJlci4NCj4gPg0KPiA+IEZpeGVzOiA0ODcwYThjZGQ5Njgg KCJuZXQvdGFwOiBzdXBwb3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