From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr2-f12.google.com (mail-wr2-f12.google.com [74.125.225.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED1CC48C3E8 for ; Mon, 7 Sep 2026 12:51:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788785506; cv=none; b=S7bYHUxusCuLZIMkgKS72zvWGzanw5dp+80TpSdP2L6AziV2d2ict/XR7rSWYqh1yc9mHMRBkXMuP9IJjmq0rZ2ut2gcJQz5rf0nscTsvM8e674CEgI2g036HWRxtVLt8M9EExiVlxcN1HjSoob25dZfLX52l4wUuFewNJMb+/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788785506; c=relaxed/simple; bh=QcG4Y12EznNeNbKOAixbdSxNwnRwj3wcEZZ8DofN3RU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tn/rPE8N1JQCWklOJHw5HTc4zRQIBOL+3CgHQtuZQ5ypShgVfUH8f4uEpLm++QuyGxp19vbfftaZPVu4QFvvKbWJWq6qxVFHIQJm/XFOMe+XJxWjY6bEb/VTJU5bvqJLScLU+wQJcgBJGdjDrpkOAL9VbOmYK8sHuPUAs1p2cko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=6wind.com; spf=pass smtp.mailfrom=6wind.com; dkim=pass (2048-bit key) header.d=6wind.com header.i=@6wind.com header.b=U9OYRh4Z; arc=none smtp.client-ip=74.125.225.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=6wind.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=6wind.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=6wind.com header.i=@6wind.com header.b="U9OYRh4Z" Received: by mail-wr2-f12.google.com with SMTP id ffacd0b85a97d-482e1b429f7so189703f8f.2 for ; Mon, 07 Sep 2026 05:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1788785503; x=1789390303; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:organization :content-language:from:references:cc:to:subject:reply-to:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to:content-type; bh=LNGC4xhmgAqrems8CxPUwu2p9jt91LkbKNWkt+9er04=; b=U9OYRh4Zm6Gs7oaMZSqZxd206ZjVVYgNMCi1qEwrzkW585k+ikrhW1kI4iNhrkB6VU GDskHH74Z0Oqwsjm9nBrKeP1yu5jxkfmYANQO6N1eoI+Rry19sxLI3/BlyvNIHdL0Mc8 gr8HFX+sHNqdae20bWGqBqqEqjWCsPJeqnRwYuEP1EB+RhsYK+ENPYA1fH9TkvFrwqsQ iyQ7Cc3jvRj0B8E6VGXPsmf2qVXWDvP2ReAYMQeaQ5EcRTTCJj4/TvqwfQmnuOwc54ld tTfiuHK2n09vPqx2Yyr3O4TlyFTGgJtobc5DcYzqLmVwwQEf+aNAw1N2jfpTnPSZBUP0 ncKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788785503; x=1789390303; h=content-transfer-encoding:content-type:in-reply-to:organization :content-language:from:references:cc:to:subject:reply-to:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=LNGC4xhmgAqrems8CxPUwu2p9jt91LkbKNWkt+9er04=; b=d3jv6NgyYmh7BFWrxDeQbhQMnFpK3I8paiyNuP4M5bWsNjGNl01pAQlkmvNFBM89eX 315tSRAsRiocpxM334T9MEU21S5fejWNQcOJ0nkeGQmDsJYj22yu8kHbZHHT39yYKu48 T2UVUpj8AF1j7Zzzl2MjJibcGGXCbjZuprWg0Q2otzDkC2+89u4xmSqj4wmDb8iSThuy UGBTVSDBhN8mqdIWaE3B2xk+HY7gDVURBSoP9AYozVys/TMdu17P8BzyvEP47lrY4fvg K5uYb050U1mhNIUaeDZtIdk3/yjbT6SQxdUcdQVSXQV8dkkW6y+sAofwj3LFFJ871/u6 qgnw== X-Forwarded-Encrypted: i=1; AKwUvByo6Zpjrd5rzfhiQibZB3LpvuB6AkcUbjixSsk+8p3BLyhijXrjrMtOXtkwSFV5U7fHW6PKNsY=@vger.kernel.org X-Gm-Message-State: AFuF++nkdJymv7xrY72rUqa4f49yR3A2x1T2Vuk0ikzQc7JxgIfaEK6J 1KsdmW+TWY1LsS+BVtI5l0MmPI1g1T0Y2knE3xjFD3hQlwKiA9RPrcxJDDcHPaZuJ4s= X-Gm-Gg: AYBFou32FcY9xdCAukjKkjuwiHf7uvedyiajV4pGI/k6G7i/oPCrTDEU2Miq+4IxElQ 3f1dnEyMaIKOnPXkg+KwgBTWHa03mB3CeSBhdBUEP8ebCprZrkPXOeFFYB+otABifEa4rn7oVdH GjNh9y21TDjdRQRcWK1vrT3+UXouki3gN3LGHGY7ZAlMLfo+QPuLXrdXdd1bEecxokrpLstIFqY IR0YzQmwh3BdTYjJC/3Szpg2nuLOMzDA1HgAtlkxJTCzl3BAIGriiZwPkksV3r2NTZg122Gpjui jJfXT587M3wV5+eIZz9eshqg8vm9LaVYU+O8Gf933weFkYJYbgZ/zbJ7wZ4qCsTcBN5kUhud+Bi PBYYUEZXPLnPFR/2KGZWzfwY5P5UnmAobreH/Aw+9+oeo+EbupOlIBa1harOfNhZ3qyuNw0ivSK XPUVaCYRO5effxv/tx5S7mh/kPt6gmPo9XhOv7EU3cb6PjkS/B1cILZxR6VBwMhz+o+g8rzJ83G Qxd0fFwLvbF+eE92Ft1kB0nljQ1j7iem7h9Q+N+mA== X-Received: by 2002:a05:6000:2089:b0:484:3313:4a04 with SMTP id ffacd0b85a97d-48590807e07mr13071460f8f.6.1788785503154; Mon, 07 Sep 2026 05:51:43 -0700 (PDT) Received: from ?IPV6:2a01:e0a:ab7:2110:6a1d:efff:fe52:1959? ([2a01:e0a:ab7:2110:6a1d:efff:fe52:1959]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4859162f354sm20729287f8f.20.2026.09.07.05.51.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Sep 2026 05:51:42 -0700 (PDT) Message-ID: Date: Mon, 7 Sep 2026 14:51:42 +0200 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH net-next 0/3] rtnetlink: dump link-layer multicast addresses To: Yuyang Huang Cc: "David S. Miller" , David Ahern , Donald Hunter , Eric Dumazet , Ido Schimmel , Jakub Kicinski , Kuniyuki Iwashima , Nikolaos Gkarlis , Paolo Abeni , Sabrina Dubroca , Shuah Khan , Simon Horman , Stanislav Fomichev , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org References: <20260905093932.43726-1-sigefriedhyy@gmail.com> From: Nicolas Dichtel Content-Language: en-US Organization: 6WIND In-Reply-To: <20260905093932.43726-1-sigefriedhyy@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le 05/09/2026 à 11:39, Yuyang Huang a écrit : > "ip maddr show" prints three kinds of entries: link-layer, IPv4 and > IPv6. The IPv4 and IPv6 ones can be read over netlink today: IPv6 has > had RTM_GETMULTICAST for a long time and IPv4 got it in eb4e17a1d915 > ("netlink: support dumping IPv4 multicast addresses"), with IFA_MC_USERS > added later so the user count no longer has to come from procfs. > > The link-layer list is the missing piece. dev->mc, the addresses > programmed into the device filter, is only exported via > /proc/net/dev_mcast, so iproute2 still carries a procfs parser just for These addresses could be listed with 'bridge fdb' (RTM_GETNEIGH on AF_BRIDGE). Instead of having a new message to get the missing info (users), maybe it would be better to update the current API. > that. This series closes the gap so that "ip maddr show" can be served > from rtnetlink alone. > > Patch 1 handles RTM_GETMULTICAST dumps with ifa_family set to AF_PACKET FWIW, AF_PACKET seems strange to me. Isn't AF_UNSPEC (like for interface, cf rtnl_fill_ifinfo) more appropriate? Regards, Nicolas