]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: b53: skip multicast entries for fdb_dump()
authorJonas Gorski <jonas.gorski@gmail.com>
Wed, 17 Dec 2025 20:57:56 +0000 (21:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:57 +0000 (13:09 +0100)
commitb3c214ac512e168892e41e48e838f042d7d2d4e1
tree2e4e096915c97073d797c973bffc5a7db309f7ba
parentd55b060b6c56341b47030b894cfb5e5f256696b1
net: dsa: b53: skip multicast entries for fdb_dump()

[ Upstream commit d42bce414d1c5c0b536758466a1f63ac358e613c ]

port_fdb_dump() is supposed to only add fdb entries, but we iterate over
the full ARL table, which also includes multicast entries.

So check if the entry is a multicast entry before passing it on to the
callback().

Additionally, the port of those entries is a bitmask, not a port number,
so any included entries would have even be for the wrong port.

Fixes: 1da6df85c6fb ("net: dsa: b53: Implement ARL add/del/dump operations")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20251217205756.172123-1-jonas.gorski@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/b53/b53_common.c