net: report multicast group user count
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
Patches in v1 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net: ipv4: report multicast group user countDocumentation/ include/ net/ | +7 | 2 replies | Applied |
| 2/3 | net: ipv6: report multicast group user countnet/ net/ | +2 | 2 replies | Applied |
| 3/3 | selftests: net: check multicast group user counttools/ | +90 | 1 reply | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Vadim Fedorenko | Ido Schimmel |
|---|---|---|
| 1/3 | R-b | R-b |
| 2/3 | R-b | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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