[PATCH] lib/gro: use hash function for flow lookup
kumaraparameshwaran rathinavel
kumaraparamesh92 at gmail.com
Thu Jan 2 04:53:06 CET 2025
On Wed, Jan 1, 2025 at 10:51 PM Stephen Hemminger <
stephen at networkplumber.org> wrote:
> On Wed, 1 Jan 2025 15:07:35 +0530
> Kumara Parameshwaran <kumaraparamesh92 at gmail.com> wrote:
>
> > From: Kumara Parameshwaran <kumaraparamesh92 at gmail.com>
> > To: hujiayu.hu at foxmail.com
> > Cc: dev at dpdk.org, Kumara Parameshwaran <kumaraparamesh92 at 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 at 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.
> >>Sure, I was thinking to use cuckoo hash, but then thought if this could
> be an overkill to for this implementation.
> Alternatively, use a better hash function such as siphash which is
> resistent
> to DoS attacks.
>> Yes, sure. Will change it. Had used that to get an idea for the
overall implementation itself.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250102/8c19c611/attachment-0001.htm>
More information about the dev
mailing list