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 A4028A04A6 for ; Thu, 6 Aug 2020 15:36:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7E6C01C031; Thu, 6 Aug 2020 15:36:12 +0200 (CEST) Received: from huawei.com (szxga01-in.huawei.com [45.249.212.187]) by dpdk.org (Postfix) with ESMTP id 3304A2BF1; Thu, 6 Aug 2020 15:36:09 +0200 (CEST) Received: from DGGEMM403-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id 8F189AD2E22035682EB7; Thu, 6 Aug 2020 21:35:44 +0800 (CST) Received: from DGGEMM533-MBX.china.huawei.com ([169.254.5.24]) by DGGEMM403-HUB.china.huawei.com ([10.3.20.211]) with mapi id 14.03.0487.000; Thu, 6 Aug 2020 21:35:36 +0800 From: wangyunjian To: Ferruh Yigit , "dev@dpdk.org" CC: "keith.wiles@intel.com" , "ophirmu@mellanox.com" , "Lilijun (Jerry)" , xudingke , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/tap: free mempool when closing Thread-Index: AQHWZZzOozuoX/cl2U+8EaesNm5Ws6kpO52AgAHPq8D//4eBAIAAjY7A Date: Thu, 6 Aug 2020 13:35:35 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60D1112C4@DGGEMM533-MBX.china.huawei.com> References: <40a0e68ed41b05fba8cbe5f34e369a59a1c0c09c.1596022448.git.wangyunjian@huawei.com> <34EFBCA9F01B0748BEB6B629CE643AE60D11126E@DGGEMM533-MBX.china.huawei.com> <955bd4da-7549-f04a-4edb-6ae4534cb25f@intel.com> In-Reply-To: <955bd4da-7549-f04a-4edb-6ae4534cb25f@intel.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.185.168] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/tap: free mempool when closing X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBGZXJydWggWWlnaXQgW21haWx0 bzpmZXJydWgueWlnaXRAaW50ZWwuY29tXQ0KPiBTZW50OiBUaHVyc2RheSwgQXVndXN0IDYsIDIw MjAgOTowNCBQTQ0KPiBUbzogd2FuZ3l1bmppYW4gPHdhbmd5dW5qaWFuQGh1YXdlaS5jb20+OyBk ZXZAZHBkay5vcmcNCj4gQ2M6IGtlaXRoLndpbGVzQGludGVsLmNvbTsgb3BoaXJtdUBtZWxsYW5v eC5jb207IExpbGlqdW4gKEplcnJ5KQ0KPiA8amVycnkubGlsaWp1bkBodWF3ZWkuY29tPjsgeHVk aW5na2UgPHh1ZGluZ2tlQGh1YXdlaS5jb20+Ow0KPiBzdGFibGVAZHBkay5vcmcNCj4gU3ViamVj dDogUmU6IFtkcGRrLWRldl0gW1BBVENIXSBuZXQvdGFwOiBmcmVlIG1lbXBvb2wgd2hlbiBjbG9z aW5nDQo+IA0KPiBPbiA4LzYvMjAyMCAxOjQ1IFBNLCB3YW5neXVuamlhbiB3cm90ZToNCj4gPg0K PiA+DQo+ID4+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+ID4+IEZyb206IEZlcnJ1aCBZ aWdpdCBbbWFpbHRvOmZlcnJ1aC55aWdpdEBpbnRlbC5jb21dDQo+ID4+IFNlbnQ6IFRodXJzZGF5 LCBBdWd1c3QgNiwgMjAyMCAxMjozNiBBTQ0KPiA+PiBUbzogd2FuZ3l1bmppYW4gPHdhbmd5dW5q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