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 BFAABA00BE; Wed, 29 Apr 2020 03:08:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9A3381D6C4; Wed, 29 Apr 2020 03:08:04 +0200 (CEST) Received: from huawei.com (szxga03-in.huawei.com [45.249.212.189]) by dpdk.org (Postfix) with ESMTP id 301F11D6B9; Wed, 29 Apr 2020 03:08:02 +0200 (CEST) Received: from dggeml406-hub.china.huawei.com (unknown [172.30.72.56]) by Forcepoint Email with ESMTP id 395905D4A3C90648D4EC; Wed, 29 Apr 2020 09:08:00 +0800 (CST) Received: from DGGEML422-HUB.china.huawei.com (10.1.199.39) by dggeml406-hub.china.huawei.com (10.3.17.50) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 29 Apr 2020 09:07:59 +0800 Received: from DGGEML529-MBX.china.huawei.com ([169.254.6.203]) by dggeml422-hub.china.huawei.com ([10.1.199.39]) with mapi id 14.03.0487.000; Wed, 29 Apr 2020 09:07:51 +0800 From: "Lilijun (Jerry)" To: Honnappa Nagarahalli , "'dev@dpdk.org'" CC: wangyunjian , xudingke , "'stable@dpdk.org'" , nd , nd Thread-Topic: [dpdk-dev] [PATCH] lib/librte_hash: add rte_hash_del_key_fixed without compact Thread-Index: AdYcO135HJmvjYM1Q2CGkNRR8o1T1wBYjpkQAAj59vA= Date: Wed, 29 Apr 2020 01:07:51 +0000 Message-ID: <40280F65B1B0B44E8089ED31C01616EBA4997CD9@dggeml529-mbx.china.huawei.com> References: <40280F65B1B0B44E8089ED31C01616EBA49921F2@dggeml529-mbx.china.huawei.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.173.251.98] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: [dpdk-dev] =?utf-8?b?562U5aSNOiAgW1BBVENIXSBsaWIvbGlicnRlX2hhc2g6?= =?utf-8?q?_add_rte=5Fhash=5Fdel=5Fkey=5Ffixed_without_compact?= 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" VGhhbmtzIGZvciB5b3VyIHJlcGx5Lg0KDQpVc2luZyBydGVfaGFzaCBpdGVyYXRlIGFuZCBkZWxl dGUga2V5cyBpcyB0byBmcmVlIHRoZSByZWxhdGVkIGRhdGEncyBtZW1vcnkuIA0KVGhlcmUgYXJl IHR3byByZWFzb25zIHdoeSBydGVfaGFzaF9yZXNldCgpIGlzIG5vdCBwcm9wZXJseToNCjEpICB0 aGUgcmVzZXQgZnVuY3Rpb24ganVzdCBjbGVhciBhbGwga2V5cywgdGhlIGtleSdzIHJlbGF0ZWQg ZGF0YSBhcmUgbGVha2VkLg0KMikgIEluIHNvbWUgY2FzZXMsIEkgZG9uJ3QgbmVlZCBkZWxldGUg YWxsIGtleXMuIEp1c3Qgc29tZSBzZWxlY3RlZCBrZXlzIGFuZCBkYXRhIGFyZSBkZWxldGVkIGFu ZCByZWxlYXNlZC4NCg0KSmVycnkuDQoNCi0tLS0t6YKu5Lu25Y6f5Lu2LS0tLS0NCuWPkeS7tuS6 ujogSG9ubmFwcGEgTmFnYXJhaGFsbGkgW21haWx0bzpIb25uYXBwYS5OYWdhcmFoYWxsaUBhcm0u Y29tXSANCuWPkemAgeaXtumXtDogMjAyMOW5tDTmnIgyOeaXpSA0OjQ2DQrmlLbku7bkuro6IExp bGlqdW4gKEplcnJ5KSA8amVycnkubGlsaWp1bkBodWF3ZWkuY29tPjsgJ2RldkBkcGRrLm9yZycg PGRldkBkcGRrLm9yZz4NCuaKhOmAgTogd2FuZ3l1bmppYW4gPHdhbm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