Skip to content

net: report multicast group user count

Yuyang Huang linux-kselftest lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: ipv4: report multicast group user countDocumentation/netlink/specs/rt-addr.yaml include/uapi/linux/if_addr.h net/ipv4/igmp.c+7 -02 repliesApplied
2/3net: ipv6: report multicast group user countnet/ipv6/addrconf.c net/ipv6/mcast.c+2 -02 repliesApplied
3/3selftests: net: check multicast group user counttools/testing/selftests/net/rtnetlink.py+90 -111 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchVadim FedorenkoIdo Schimmel
1/3R-b R-b
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/3] net: report multicast group user count

RTM_GETMULTICAST reports IPv4 and IPv6 multicast group membership, but does not include the per-group user count. Userspace therefore still has to parse /proc/net/igmp and /proc/net/igmp6 to obtain the Users column. In particular, this prevents iproute2 from moving "ip maddr show" entirely from procfs to rtnetlink.

Add IFA_MC_USERS to carry the user count in RTM_GETMULTICAST dumps and RTM_NEWMULTICAST / RTM_DELMULTICAST notifications for both address families. Update the rt-addr YNL specification and extend the rtnetlink selftest to verify that two joins increase the reported count by two.

Yuyang Huang (3):
net: ipv4: report multicast group user count
net: ipv6: report multicast group user count
selftests: net: check multicast group user count

 Documentation/netlink/specs/rt-addr.yaml |   4 +
 include/uapi/linux/if_addr.h             |   1 +
 net/ipv4/igmp.c                          |   2 +
 net/ipv6/addrconf.c                      |   1 +
 net/ipv6/mcast.c                         |   1 +
 tools/testing/selftests/net/rtnetlink.py | 101 ++++++++++++++++++++---
 6 files changed, 99 insertions(+), 11 deletions(-)
Signature · 1 line
2.43.0