Re: [dpdk-dev] [PATCH v6 2/5] hash: support do not free on delete

2018-10-25 Thread Honnappa Nagarahalli
> 24/10/2018 03:32, Honnappa Nagarahalli: > > /** > > + * @warning > > + * @b EXPERIMENTAL: this API may change without prior notice > > + * > > + * Free a hash key in the hash table given the position > > + * of the key. This operation is not multi-thread safe and should > > + * only be called fr

Re: [dpdk-dev] [PATCH v6 2/5] hash: support do not free on delete

2018-10-25 Thread Thomas Monjalon
24/10/2018 03:32, Honnappa Nagarahalli: > /** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice > + * > + * Free a hash key in the hash table given the position > + * of the key. This operation is not multi-thread safe and should > + * only be called from one thread by

[dpdk-dev] [PATCH v6 2/5] hash: support do not free on delete

2018-10-23 Thread Honnappa Nagarahalli
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 introduce