Thread (12 messages) 12 messages, 5 authors, 11d ago

Re: [PATCH net-next 1/3] net: ipv4: report multicast group user count

From: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Date: 2026-07-01 20:54:29
Also in: linux-kselftest, lkml

On 30/06/2026 12:02, Yuyang Huang wrote:
RTM_GETMULTICAST has been part of the rtnetlink ABI for a long time
and already reports IPv4 multicast group membership through
IFA_MULTICAST and IFA_CACHEINFO. It does not report how many consumers
hold each membership, so userspace still has to parse /proc/net/igmp to
get the Users column.

Add IFA_MC_USERS as a u32 attribute carrying ip_mc_list::users in
RTM_GETMULTICAST replies and entry-lifecycle notifications.

This gives iproute2 enough information to migrate the IPv4 part of
"ip maddr show" from procfs parsing to rtnetlink.

Signed-off-by: Yuyang Huang <redacted>
---
  Documentation/netlink/specs/rt-addr.yaml | 4 ++++
  include/uapi/linux/if_addr.h             | 1 +
  net/ipv4/igmp.c                          | 2 ++
  3 files changed, 7 insertions(+)
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help