> -----Original Message-----
> From: dev <dev-boun...@dpdk.org> On Behalf Of Lilijun (Jerry)
> Sent: Sunday, April 26, 2020 8:41 PM
> To: 'dev@dpdk.org' <dev@dpdk.org>
> Cc: wangyunjian <wangyunj...@huawei.com>; xudingke
> <xudin...@huawei.com>; 'sta...@dpdk.org' <sta...@dpdk.org>
> Subject: [dpdk-dev] [PATCH] lib/librte_hash: avoid iterate bugs with delete
> keys.
>
> From 0faea722b82ffe30adfa55d5ea4ad3a23ed30d4e Mon Sep 17 00:00:00
> 2001
> From: Yunjian Wang <wangyunj...@huawei.com>
> Date: Mon, 27 Apr 2020 11:12:25 +0800
> Subject: [PATCH] lib/librte_hash: avoid iterate bugs with delete keys.
>
> The keys idx are stored in rte_hash main and extend bucket key slots.
> We iterate every no empty Keys in h->buckets and h->buckets_ext from
> start to last. When deleting keys the function
> __rte_hash_compact_ll() may move last_bkt's key to previous bucket in
> order to compact extend bucket list.
> If the previous bucket has been iterated, the moved key may be missed for
> users. Then those missed keys are leaked and rte_hash table can't be
> cleanup.
> So we add a new API rte_hash_del_key_fixed() used in iterate loop to avoid
> this bugs.
>
> Signed-off-by: Lilijun <jerry.lili...@huawei.com>
> Signed-off-by: Yunjian Wang <wangyunj...@huawei.com>
> ---
> --
> 2.19.1
[Wang, Yipeng]
Is this the same patch to the previous one? Please see my reply on the previous
thread.
You could add " --in-reply-to" to supersede the previous version, which will
make the maintaining work easier.