aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorYuyang Huang <[email protected]>2024-12-11 08:22:41 +0000
committerDavid S. Miller <[email protected]>2024-12-15 12:31:35 +0000
commit2c2b61d2138f472e50b5531ec0cb4a1485837e21 (patch)
tree149f8a01ba9d8b976eab555a3beb1981baad6b45 /net/unix/unix_bpf.c
parentnet: stmmac: Drop redundant dwxgmac_tc_ops variable (diff)
downloadkernel-2c2b61d2138f472e50b5531ec0cb4a1485837e21.tar.gz
kernel-2c2b61d2138f472e50b5531ec0cb4a1485837e21.zip
netlink: add IGMP/MLD join/leave notifications
This change introduces netlink notifications for multicast address changes. The following features are included: * Addition and deletion of multicast addresses are reported using RTM_NEWMULTICAST and RTM_DELMULTICAST messages with AF_INET and AF_INET6. * Two new notification groups: RTNLGRP_IPV4_MCADDR and RTNLGRP_IPV6_MCADDR are introduced for receiving these events. This change allows user space applications (e.g., ip monitor) to efficiently track multicast group memberships by listening for netlink events. Previously, applications relied on inefficient polling of procfs, introducing delays. With netlink notifications, applications receive realtime updates on multicast group membership changes, enabling more precise metrics collection and system monitoring.  This change also unlocks the potential for implementing a wide range of sophisticated multicast related features in user space by allowing applications to combine kernel provided multicast address information with user space data and communicate decisions back to the kernel for more fine grained control. This mechanism can be used for various purposes, including multicast filtering, IGMP/MLD offload, and IGMP/MLD snooping. Cc: Maciej Żenczykowski <[email protected]> Cc: Lorenzo Colitti <[email protected]> Co-developed-by: Patrick Ruddy <[email protected]> Signed-off-by: Patrick Ruddy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Yuyang Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions