diff options
| author | Paolo Abeni <pabeni@redhat.com> | 2026-10-21 10:51:28 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-10-21 10:51:29 +0200 |
| commit | 7888fedc74c9f601510233cf0c5842a92b9e4a49 (patch) | |
| tree | 3dd7cd0caa8a819f4af8c69ee422129c7c26b298 /scripts/Makefile.thinlto | |
| parent | 61b8e62120b08481440f8d5559b3df11c2cd0814 (diff) | |
| parent | 0e87a4a83e1306b36f1ebd3cc10eaf31476dfe19 (diff) | |
| download | linux-7888fedc74c9f601510233cf0c5842a92b9e4a49.tar.gz linux-7888fedc74c9f601510233cf0c5842a92b9e4a49.zip | |
Merge branch 'rtnetlink-dump-link-layer-multicast-addresses'
Yuyang Huang says:
====================
rtnetlink: dump link-layer multicast addresses
"ip maddr show" prints link-layer, IPv4 and IPv6 entries. The IPv4 and
IPv6 ones come over netlink today, with IFA_MC_USERS for the user count.
The link-layer list, dev->mc, is only exported via /proc/net/dev_mcast,
so iproute2 and other users still parse procfs for it.
This series adds the AF_PACKET family to RTM_GETMULTICAST so that the
link-layer multicast addresses are reported the same way. Patch 4 dumps
dev->mc in the ifaddrmsg format of the IPv4 and IPv6 dumps: IFA_MULTICAST
carries the address, IFA_MC_USERS the reference count and a new
IFA_F_GLOBAL flag marks entries added explicitly, the "static" column of
/proc/net/dev_mcast. ifa_index limits the dump to one device and
IFA_TARGET_NETNSID selects another netns. Patches 2 and 3 add a
generation counter for dev->mc changes so a multi-part dump reports
NLM_F_DUMP_INTR like the IPv4 and IPv6 ones. Patches 1 and 5 update the
rt-addr spec and patch 6 adds a selftest.
AF_PACKET dumps returned -EOPNOTSUPP before, so iproute2 can keep the
procfs fallback for older kernels. The iproute2 side is ready and will
be posted once this is in.
====================
Link: https://patch.msgid.link/20261012011707.3378-1-sigefriedhyy@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
