On Wed, 1 Jan 2025 15:07:35 +0530 Kumara Parameshwaran <kumaraparames...@gmail.com> wrote:
> From: Kumara Parameshwaran <kumaraparames...@gmail.com> > To: hujiayu...@foxmail.com > Cc: dev@dpdk.org, Kumara Parameshwaran <kumaraparames...@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 <kumaraparames...@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.