summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorJustin Chen <justin.chen@broadcom.com>2026-08-31 11:42:35 -0700
committerJakub Kicinski <kuba@kernel.org>2026-09-03 16:54:57 -0700
commit0c5cf62e72d7a666ee4da757e122dc1600df1ecc (patch)
tree91f10351d6f09d091c91b4d8fd429bf96b306feb /tools/perf/scripts/python/task-analyzer.py
parent18e5e0ec0e9282c897e2aa81a3e43ccaee03b003 (diff)
net: bcmasp: fix tx_spb_ring_full() checking same slot cnt times
The loop initialised next_index from intf->tx_spb_index on every iteration, so incr_ring() always produced the same result and only one slot was ever tested. Move the initialisation before the loop so each iteration advances next_index and the function correctly checks that cnt consecutive descriptor slots are available before allowing a new transmission. Fixes: 490cb412007d ("net: bcmasp: Add support for ASP2.0 Ethernet controller") Signed-off-by: Justin Chen <justin.chen@broadcom.com> Signed-off-by: Danesh Petigara <danesh.petigara@broadcom.com> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://patch.msgid.link/20260831184235.4133351-3-danesh.petigara@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions