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 270F9A0351; Thu, 6 Aug 2020 14:46:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 12BD52BF2; Thu, 6 Aug 2020 14:46:01 +0200 (CEST) Received: from huawei.com (szxga02-in.huawei.com [45.249.212.188]) by dpdk.org (Postfix) with ESMTP id E9ED32BF1; Thu, 6 Aug 2020 14:45:59 +0200 (CEST) Received: from DGGEMM402-HUB.china.huawei.com (unknown [172.30.72.56]) by Forcepoint Email with ESMTP id 6BE983D6498ECCA51B55; Thu, 6 Aug 2020 20:45:55 +0800 (CST) Received: from DGGEMM533-MBX.china.huawei.com ([169.254.5.24]) by DGGEMM402-HUB.china.huawei.com ([10.3.20.210]) with mapi id 14.03.0487.000; Thu, 6 Aug 2020 20:45:46 +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+8EaesNm5Ws6kpO52AgAHPq8A= Date: Thu, 6 Aug 2020 12:45:45 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60D11126E@DGGEMM533-MBX.china.huawei.com> References: <40a0e68ed41b05fba8cbe5f34e369a59a1c0c09c.1596022448.git.wangyunjian@huawei.com> In-Reply-To: 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-dev] [PATCH] net/tap: free mempool when closing 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" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogRmVycnVoIFlpZ2l0IFtt YWlsdG86ZmVycnVoLnlpZ2l0QGludGVsLmNvbV0NCj4gU2VudDogVGh1cnNkYXksIEF1Z3VzdCA2 LCAyMDIwIDEyOjM2IEFNDQo+IFRvOiB3YW5neXVuamlhbiA8d2FuZ3l1bmppYW5AaHVhd2VpLmNv bT47IGRldkBkcGRrLm9yZw0KPiBDYzoga2VpdGgud2lsZXNAaW50ZWwuY29tOyBvcGhpcm11QG1l bGxhbm94LmNvbTsgTGlsaWp1biAoSmVycnkpDQo+IDxqZXJyeS5saWxpanVuQGh1YXdlaS5jb20+ OyB4dWRpbmdrZSA8eHVkaW5na2VAaHVhd2VpLmNvbT47DQo+IHN0YWJsZUBkcGRrLm9yZw0KPiBT dWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0hdIG5ldC90YXA6IGZyZWUgbWVtcG9vbCB3aGVu IGNsb3NpbmcNCj4gDQo+IE9uIDcvMjkvMjAyMCAxMjozNSBQTSwgd2FuZ3l1bmppYW4gd3JvdGU6 DQo+ID4gRnJvbTogWXVuamlhbiBXYW5nIDx3YW5neXVuamlhbkBodWF3ZWkuY29tPg0KPiA+DQo+ ID4gV2hlbiBzZXR1cCB0eCBxdWV1ZXMsIHdlIHdpbGwgY3JlYXRlIGEgbWVtcG9vbCBmb3IgdGhl ICdnc29fY3R4Jy4NCj4gPiBUaGUgbWVtcG9vbCBpcyBub3QgZnJlZWQgd2hlbiBjbG9zaW5nIHRh cCBkZXZpY2UuIElmIGZyZWUgdGhlIHRhcA0KPiA+IGRldmljZSBhbmQgY3JlYXRlIGl0IHdpdGgg ZGlmZmVyZW50IG5hbWUsIGl0IHdpbGwgY3JlYXRlIGEgbmV3DQo+ID4gbWVtcG9vbC4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