All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Kumara Parameshwaran <kumaraparamesh92@gmail.com>
Cc: hujiayu.hu@foxmail.com, dev@dpdk.org
Subject: Re: [PATCH] lib/gro: use hash function for flow lookup
Date: Wed, 1 Jan 2025 09:21:38 -0800	[thread overview]
Message-ID: <20250101092138.4fb5fdee@fedora> (raw)
In-Reply-To: <20250101093735.95271-1-kumaraparamesh92@gmail.com>

On Wed,  1 Jan 2025 15:07:35 +0530
Kumara Parameshwaran <kumaraparamesh92@gmail.com> wrote:

> From: Kumara Parameshwaran <kumaraparamesh92@gmail.com>
> To: hujiayu.hu@foxmail.com
> Cc: dev@dpdk.org,  Kumara Parameshwaran <kumaraparamesh92@gmail.com>
> Subject: [PATCH] lib/gro: use hash function for flow lookup
> Date: Wed,  1 Jan 2025 15:07:35 +0530
> X-Mailer: git-send-email 2.47.1
> 
> optimize the GRO lookup using hash based
> implementation
> 
> Signed-off-by: Kumara Parameshwaran <kumaraparamesh92@gmail.com>

Rather than open coding a hash table with collision chains, please use the
existing DPDK cuckoo hash which is faster and you can also prevent hash
DoS chain attacks.


Alternatively, use a better hash function such as siphash which is resistent
to DoS attacks.

  reply	other threads:[~2025-01-01 17:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-01  9:37 [PATCH] lib/gro: use hash function for flow lookup Kumara Parameshwaran
2025-01-01 17:21 ` Stephen Hemminger [this message]
2025-01-02  3:53   ` kumaraparameshwaran rathinavel
2025-11-10 16:29   ` kumaraparameshwaran rathinavel

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=20250101092138.4fb5fdee@fedora \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=hujiayu.hu@foxmail.com \
    --cc=kumaraparamesh92@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.