DPDK usage discussions
 help / color / mirror / Atom feed
From: Gokilavani A <gokilavanianbazhagan@gmail.com>
To: users@dpdk.org
Subject: Crash at rte_hash_del_key()
Date: Mon, 10 Oct 2022 19:31:54 +0530	[thread overview]
Message-ID: <CAFYD4Lp09nGF6Abyv82oMD7FHQENp4NNXXjMLATx0tkoQ70pOg@mail.gmail.com> (raw)

[-- 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 --]

                 reply	other threads:[~2022-10-10 14:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFYD4Lp09nGF6Abyv82oMD7FHQENp4NNXXjMLATx0tkoQ70pOg@mail.gmail.com \
    --to=gokilavanianbazhagan@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).