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

ipv6/udp: Add 4-tuple hash for connected socket



Implement ipv6 udp hash4 like that in ipv4. The major difference is that
the hash value should be calculated with udp6_ehashfn(). Besides,
ipv4-mapped ipv6 address is handled before hash() and rehash(). Export
udp_ehashfn because now we use it in udpv6 rehash.

Core procedures of hash/unhash/rehash are same as ipv4, and udpv4 and
udpv6 share the same udptable, so some functions in ipv4 hash4 can also
be shared.

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 78c91ae2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment