[dpdk-dev] [PATCH v5 2/5] hash: support do not free on delete
Bruce Richardson
bruce.richardson at intel.com
Tue Oct 23 12:30:06 CEST 2018
On Mon, Oct 22, 2018 at 11:22:01PM -0500, Honnappa Nagarahalli wrote:
> rte_hash_lookup_xxx APIs return the index of slot in
> the key store. Application(reader) can use that index to reference
> other data structures in its scope. Because of this, the
> index should not be freed till the application completes
> using the index.
> RTE_HASH_EXTRA_FLAGS_NO_FREE_ON_DEL is introduced to support this.
> When this flag is enabled rte_hash_del_xxx APIs do not free the
> key-store index/internal memory associated with the deleted
> entry. The new API rte_hash_free_key_with_position should be called
> to free the key-store index/internal memory after calling
> rte_hash_del_xxx APIs.
>
> Suggested-by: Yipeng Wang <yipeng1.wang at intel.com>
> Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Reviewed-by: Gavin Hu <gavin.hu at arm.com>
> Reviewed-by: Yipeng Wang <yipeng1.wang at arm.com>
> ---
As before, fix email in reviewed-by.
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list