Commit dab78a17 authored by Philo Lu's avatar Philo Lu Committed by David S. Miller
Browse files

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: default avatarCambda Zhu <cambda@linux.alibaba.com>
Signed-off-by: default avatarCambda Zhu <cambda@linux.alibaba.com>
Co-developed-by: default avatarFred Chen <fred.cc@alibaba-inc.com>
Signed-off-by: default avatarFred Chen <fred.cc@alibaba-inc.com>
Co-developed-by: default avatarYubing Qiu <yubing.qiuyubing@alibaba-inc.com>
Signed-off-by: default avatarYubing Qiu <yubing.qiuyubing@alibaba-inc.com>
Signed-off-by: default avatarPhilo Lu <lulie@linux.alibaba.com>
Acked-by: default avatarWillem de Bruijn <willemb@google.com>
Acked-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent accdd51d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment