DPDK patches and discussions
 help / color / mirror / Atom feed
From: Reuben Hawkins <reubenhwk@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] rte_hash_iterate EAGAIN limit
Date: Tue, 27 Oct 2020 14:25:07 -0700	[thread overview]
Message-ID: <CAD_8n+QsRVPsf6OJMuXJh1zd3iveWFmPnaOq_NDgS1p28i_n1g@mail.gmail.com> (raw)

I'd like to submit a patch which changes the behavior of rte_hash_iterate
such that it will only check a small number of hash table positions (maybe
32), and if they're all empty, return -EAGAIN.

This will enable a user to call the function in a main packet processing
loop to do garbage collection on a hash table.

Would such a change be welcome?

Thanks in advance,
Reuben

                 reply	other threads:[~2020-10-27 21:25 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=CAD_8n+QsRVPsf6OJMuXJh1zd3iveWFmPnaOq_NDgS1p28i_n1g@mail.gmail.com \
    --to=reubenhwk@gmail.com \
    --cc=dev@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).