summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2025-11-02 11:07:58 +0100
committerJakub Kicinski <kuba@kernel.org>2025-11-03 16:42:43 -0800
commite57723fe536f040cc2635ec1545dd0a7919a321e (patch)
tree575f337261037b36a271b002d25727f0b757fc87 /scripts/lib/kdoc/kdoc_parser.py
parent0be04b5fa62a82a9929ca261f6c9f64a3d0a28da (diff)
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: cd169d799bee ("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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions