ll_map: add RTEXT_FILTER_NAME_ONLY to ll_link_get() and ll_init_map()
iproute2 can spend considerable amount of time in ll_init_map()
or ll_link_get() to dump verbose netdev attributes, contributing
to RTNL pressure.
Add RTEXT_FILTER_NAME_ONLY new flag so that rtnl_fill_ifinfo()
limits its output to:
- struct nlmsghdr
- IFLA_IFNAME
- IFLA_PROP_LIST (alternate names)
This is supported in linux 7.2+ (and ignored in old kernels).
RTNL avoidance should be automatically provided in upcoming
kernel patches.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David Ahern <dsahern@kernel.org> E
Eric Dumazet committed
de91e928ff57bc11bdcf76c8d6d302fe788e0440
Parent: 53ee32d
Committed by David Ahern <dsahern@kernel.org>
on 5/22/2026, 10:15:35 PM