]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp: optimize inet_use_bhash2_on_bind()
authorEric Dumazet <edumazet@google.com>
Sun, 2 Mar 2025 12:42:35 +0000 (12:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Mar 2025 01:46:26 +0000 (17:46 -0800)
commitca79d80b0b9f42362a893f06413a9fe91811158a
tree09f56f0ba342e876bb1c5a1216b784ed62443e31
parentae9d5b19b322d4b557efda684da2f4df21670ef8
tcp: optimize inet_use_bhash2_on_bind()

There is no reason to call ipv6_addr_type().

Instead, use highly optimized ipv6_addr_any() and ipv6_addr_v4mapped().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250302124237.3913746-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/inet_connection_sock.c