]> www.infradead.org Git - users/dwmw2/linux.git/commit
netlink: add IPv6 anycast join/leave notifications
authorYuyang Huang <yuyanghuang@google.com>
Tue, 7 Jan 2025 11:43:55 +0000 (20:43 +0900)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 9 Jan 2025 11:54:45 +0000 (12:54 +0100)
commit33d97a07b3ae6fa713919de4e1864ca04fff8f80
treefe433686dcb499636a2559bf0b52cf543e78c836
parente61e6c415ba9ff2b32bb6780ce1b17d1d76238f1
netlink: add IPv6 anycast join/leave notifications

This change introduces a mechanism for notifying userspace
applications about changes to IPv6 anycast addresses via netlink. It
includes:

* Addition and deletion of IPv6 anycast addresses are reported using
  RTM_NEWANYCAST and RTM_DELANYCAST.
* A new netlink group (RTNLGRP_IPV6_ACADDR) for subscribing to these
  notifications.

This enables user space applications(e.g. ip monitor) to efficiently
track anycast addresses through netlink messages, improving metrics
collection and system monitoring. It also unlocks the potential for
advanced anycast management in user space, such as hardware offload
control and fine grained network control.

Cc: Maciej Żenczykowski <maze@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Yuyang Huang <yuyanghuang@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250107114355.1766086-1-yuyanghuang@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/addrconf.h
include/uapi/linux/rtnetlink.h
net/ipv6/addrconf.c
net/ipv6/anycast.c