linux/drivers/net/dsa/b53
Jonas Gorski d42bce414d net: dsa: b53: skip multicast entries for fdb_dump()
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: 1da6df85c6 ("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>
2025-12-27 17:17:32 +01:00
..
b53_common.c net: dsa: b53: skip multicast entries for fdb_dump() 2025-12-27 17:17:32 +01:00
b53_mdio.c net: dsa: b53: mdio: add support for BCM53101 2025-02-19 18:41:43 -08:00
b53_mmap.c net: dsa: b53: mmap: Implement bcm63268 gphy power control 2025-08-14 17:53:58 -07:00
b53_priv.h net: dsa: b53: fix BCM5325/65 ARL entry VIDs 2025-12-01 14:46:39 -08:00
b53_regs.h net: dsa: b53: fix BCM5325/65 ARL entry VIDs 2025-12-01 14:46:39 -08:00
b53_serdes.c net: remove phylink_pcs .neg_mode boolean 2025-02-14 17:09:50 -08:00
b53_serdes.h net: dsa: use capital "OR" for multiple licenses in SPDX 2023-08-24 12:02:53 -07:00
b53_spi.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
b53_srab.c net: dsa: Switch back to struct platform_driver::remove() 2024-10-04 16:39:57 -07:00
Kconfig net: dsa: b53: support legacy FCS tags 2025-06-17 17:52:04 -07:00
Makefile