umber-kernel/drivers/net/dsa/b53
Jonas Gorski e57723fe53 net: dsa: b53: properly bound ARL searches for < 4 ARL bin chips
When iterating over the ARL table we stop at max ARL entries / 2, but
this is only valid if the chip actually returns 2 results at once. For
chips with only one result register we will stop before reaching the end
of the table if it is more than half full.

Fix this by only dividing the maximum results by two if we have a chip
with more than one result register (i.e. those with 4 ARL bins).

Fixes: cd169d799b ("net: dsa: b53: Bound check ARL searches")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20251102100758.28352-4-jonas.gorski@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-11-03 16:42:43 -08:00
..
Kconfig net: dsa: b53: support legacy FCS tags 2025-06-17 17:52:04 -07:00
Makefile
b53_common.c net: dsa: b53: properly bound ARL searches for < 4 ARL bin chips 2025-11-03 16:42:43 -08:00
b53_mdio.c
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: Define chip IDs for more bcm63xx SoCs 2025-07-25 14:07:33 -07:00
b53_regs.h net: dsa: b53: fix enabling ip multicast 2025-11-03 16:42:42 -08:00
b53_serdes.c
b53_serdes.h
b53_spi.c
b53_srab.c