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 39952A00C5 for ; Mon, 27 Apr 2020 04:28:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EE58C1C127; Mon, 27 Apr 2020 04:28:44 +0200 (CEST) Received: from huawei.com (szxga01-in.huawei.com [45.249.212.187]) by dpdk.org (Postfix) with ESMTP id 3FDDC1C0BD; Mon, 27 Apr 2020 04:28:42 +0200 (CEST) Received: from dggeml406-hub.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id ACF7F6CA618AD2A334BD; Mon, 27 Apr 2020 10:28:39 +0800 (CST) Received: from DGGEML529-MBX.china.huawei.com ([169.254.6.203]) by dggeml406-hub.china.huawei.com ([10.3.17.50]) with mapi id 14.03.0487.000; Mon, 27 Apr 2020 10:28:33 +0800 From: "Lilijun (Jerry)" To: "'dev@dpdk.org'" CC: wangyunjian , xudingke , "'stable@dpdk.org'" Thread-Topic: [dpdk-dev] [PATCH] lib/librte_hash: add rte_hash_del_key_fixed without compact Thread-Index: AdYcO135HJmvjYM1Q2CGkNRR8o1T1w== Date: Mon, 27 Apr 2020 02:28:33 +0000 Message-ID: <40280F65B1B0B44E8089ED31C01616EBA49921F2@dggeml529-mbx.china.huawei.com> 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="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: [dpdk-stable] [dpdk-dev] [PATCH] lib/librte_hash: add rte_hash_del_key_fixed without compact 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"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