Philo Lu 1b29a730ef 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: 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>
2024-11-18 11:56:21 +00:00
..
2024-11-11 10:32:06 -08:00
2024-11-07 12:46:04 +01:00
2024-11-11 10:32:06 -08:00
2024-10-15 18:52:26 -07:00
2024-09-11 20:44:31 -07:00
2024-11-11 10:32:06 -08:00
2024-10-09 19:40:46 -07:00
2024-11-11 10:32:06 -08:00
2024-04-29 13:32:01 +01:00
2024-05-30 18:29:38 -07:00
2023-10-27 10:35:46 +01:00
2023-09-14 16:16:36 +02:00
2024-03-08 10:56:05 +00:00