]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipv6: make ipv6_pinfo.daddr_cache a boolean
authorEric Dumazet <edumazet@google.com>
Tue, 16 Sep 2025 16:09:43 +0000 (16:09 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 08:17:09 +0000 (10:17 +0200)
commit5489f333ef993bfceebce9ae98944f04eaafcc30
treeee72a3b90804e5c400d377eeffd2464778752de7
parent3fbb2a6f3a70c27a6a2be80d131970608c0f84d0
ipv6: make ipv6_pinfo.daddr_cache a boolean

ipv6_pinfo.daddr_cache is either NULL or &sk->sk_v6_daddr

We do not need 8 bytes, a boolean is enough.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250916160951.541279-3-edumazet@google.com
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/linux/ipv6.h
include/net/ip6_route.h
net/ipv6/af_inet6.c
net/ipv6/inet6_connection_sock.c
net/ipv6/ip6_output.c
net/ipv6/route.c
net/ipv6/tcp_ipv6.c