DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Venkatesan, Venky" <venky.venkatesan@intel.com>
To: dev@dpdk.org
Subject: Re: [dpdk-dev] LRU using DPDK 1.7
Date: Mon, 22 Sep 2014 19:42:26 -0700	[thread overview]
Message-ID: <5420DE12.2050508@intel.com> (raw)
In-Reply-To: <20140923013356.GA26558@mhcomputing.net>


On 9/22/2014 6:33 PM, Matthew Hall wrote:
> On Tue, Sep 23, 2014 at 01:08:21AM +0000, Saha, Avik (AWS) wrote:
>> I was wondering if there is way to use the rte_table_hash_lru without
>> building a pipeline - Basically using the same hash table like functionality
>> of add, delete and lookup without setting up a pipeline and connect it to
>> ports etc.
> I've been finding that rte_hash is designed only for some very specialized
> purposes. It doesn't work well if you use unexpected sizes of keys or want
> behavior that isn't precisely doing what the designers of the hash used it
> for... it's not very general-purpose.
Yes, it isn't very general purpose as of now (arbitrary key sizes, 
failure path on add if bucket is full etc.). It was designed to be a 
tuple matcher, albeit for a much different performance level than what 
we have driven the DPDK to at present.

That said, the structure of this is something that I expect that we will 
change to make much more flexible, and have a few ideas I'm exploring 
along that line. What would be helpful is start adding to that list of 
limitations from your perspective so that we can address as much of that 
with one patch set.
>
> I did try to point out one example of the issue but I didn't get much response
> yet to my questions about its limitations and whether a more general-purpose
> table was available, or at least some discussion what rte_hash is for and what
> it's not for.
>
> Matthew.

I missed the original email you refer to - I'll dig that up as well from 
the archives.

Regards,
-Venky

  reply	other threads:[~2014-09-23  2:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23  1:08 Saha, Avik (AWS)
2014-09-23  1:33 ` Matthew Hall
2014-09-23  2:42   ` Venkatesan, Venky [this message]
2014-09-23  3:43   ` Saha, Avik (AWS)
2014-09-23  5:26     ` Matthew Hall

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=5420DE12.2050508@intel.com \
    --to=venky.venkatesan@intel.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).