> When rte_hash_add_key_data() overwrites an existing key, the old data > pointer is silently lost. With RCU-protected readers still potentially > accessing the old data, the application has no safe way to free it. > > When RCU is configured with a free_key_data_func callback, automatically > enqueue the old data for deferred freeing via the RCU defer queue on > overwrite. In SYNC mode, synchronize and call free_key_data_func > directly. > > Cc: [email protected] > Fixes: 769b2de7fb52 ("hash: implement RCU resources reclamation") > > Signed-off-by: Robin Jarry <[email protected]> > --- Acked-by: Konstantin Ananyev <[email protected]> > 2.53.0 >
- RE: [PATCH dpdk v2 1/3] hash: avoid leaking en... Konstantin Ananyev
- [PATCH dpdk v2 2/3] hash: free replaced data on ov... Robin Jarry
- RE: [PATCH dpdk v2 2/3] hash: free replaced da... Konstantin Ananyev
- Re: [PATCH dpdk v2 2/3] hash: free replace... Robin Jarry
- Re: [PATCH dpdk v2 2/3] hash: free rep... Robin Jarry
- [PATCH dpdk v2 3/3] hash: add replace API returnin... Robin Jarry
- RE: [PATCH dpdk v2 3/3] hash: add replace API ... Konstantin Ananyev
- [PATCH dpdk v3 0/2] hash: safe data replacement on over... Robin Jarry
- [PATCH dpdk v3 1/2] hash: avoid leaking entries on... Robin Jarry
- [PATCH dpdk v3 2/2] hash: free replaced data on ov... Robin Jarry
- RE: [PATCH dpdk v3 2/2] hash: free replaced da... Konstantin Ananyev
- RE: [PATCH dpdk v3 0/2] hash: safe data replacemen... Konstantin Ananyev
- Re: [PATCH dpdk v3 0/2] hash: safe data replac... Robin Jarry
- RE: [PATCH dpdk v3 0/2] hash: safe data re... Konstantin Ananyev

