DPDK usage discussions
 help / color / mirror / Atom feed
* Crash at rte_hash_del_key()
@ 2022-10-10 14:01 Gokilavani A
  0 siblings, 0 replies; only message in thread
From: Gokilavani A @ 2022-10-10 14:01 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

Hi,

I am using *DPDK-18.02.02* in my application where we have created hash
table
with the following parameters,

/**DPDK hash table configuration parameters */*
*rte_hash_parameters flowHashParams = {*
*    .name = "Hash Table for FLOW",*
*    .entries = 128000,*
*    .key_len = sizeof(ipv4_flow_key_t),  /* Key size - number of bytes */*
*    .hash_func = ipv4_flow_hash_crc,     /* Function which creates the Key
*/*
*    .hash_func_init_val = 0,*
*    .extra_flag = RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD,*
*    /* FLAG - Multiple thread can use this HT */*
*};*

While adding and deleting an entry in hash table in DPDK-18.02.2,
everything works well.

While moving on with *DPDK-19.11.13*(latest stable version), we are facing
a crash at *rte_hash_del_key()*. If we remove that extra_flag,
*RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD
*in the hash table parameters, we did not face any crash at
rte_hash_del_key().

In my application, one thread adds entry to the hash table, another one
thread reads those information and delete the entry in the hash table.

How can we add that multiwriter support for the hash table? Is there any
alternative to enable that support?

Thanks,
Gokilavani A

[-- Attachment #2: Type: text/html, Size: 1774 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-10 14:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-10 14:01 Crash at rte_hash_del_key() Gokilavani A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).