aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorDave Jiang <[email protected]>2023-08-22 16:04:57 +0000
committerJon Mason <[email protected]>2023-08-22 16:38:19 +0000
commit5a7693e6bbf19b22fd6c1d2c4b7beb0a03969e2c (patch)
tree65c59838f0fbef539e46bd43bb6a4ae8178fd513 /tools/perf/scripts/python/arm-cs-trace-disasm.py
parentntb: Drop packets when qp link is down (diff)
downloadkernel-5a7693e6bbf19b22fd6c1d2c4b7beb0a03969e2c.tar.gz
kernel-5a7693e6bbf19b22fd6c1d2c4b7beb0a03969e2c.zip
ntb: Fix calculation ntb_transport_tx_free_entry()
ntb_transport_tx_free_entry() never returns 0 with the current calculation. If head == tail, then it would return qp->tx_max_entry. Change compare to tail >= head and when they are equal, a 0 would be returned. Fixes: e74bfeedad08 ("NTB: Add flow control to the ntb_netdev") Reviewed-by: Logan Gunthorpe <[email protected]> Signed-off-by: renlonglong <[email protected]> Signed-off-by: Dave Jiang <[email protected]> Signed-off-by: Jon Mason <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions