]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/udp: Add 4-tuple hash list basis
authorPhilo Lu <lulie@linux.alibaba.com>
Thu, 14 Nov 2024 10:52:05 +0000 (18:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Nov 2024 11:56:21 +0000 (11:56 +0000)
commitdab78a1745ab3c6001e1e4d50a9d09efef8e260d
tree6b2b4afeef84ad08f4e69b67223d807608368319
parentaccdd51dc74ff65b7b7be1961b11723d228fbbbd
net/udp: Add 4-tuple hash list basis

Add a new hash list, hash4, in udp table. It will be used to implement
4-tuple hash for connected udp sockets. This patch adds the hlist to
table, and implements helpers and the initialization. 4-tuple hash is
implemented in the following patch.

hash4 uses hlist_nulls to avoid moving wrongly onto another hlist due to
concurrent rehash, because rehash() can happen with lookup().

Co-developed-by: Cambda Zhu <cambda@linux.alibaba.com>
Signed-off-by: Cambda Zhu <cambda@linux.alibaba.com>
Co-developed-by: Fred Chen <fred.cc@alibaba-inc.com>
Signed-off-by: Fred Chen <fred.cc@alibaba-inc.com>
Co-developed-by: Yubing Qiu <yubing.qiuyubing@alibaba-inc.com>
Signed-off-by: Yubing Qiu <yubing.qiuyubing@alibaba-inc.com>
Signed-off-by: Philo Lu <lulie@linux.alibaba.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/udp.h
include/net/udp.h
net/ipv4/udp.c