diff options
| author | Weihang Li <[email protected]> | 2020-05-08 17:45:55 +0800 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-05-19 20:54:58 -0300 |
| commit | d4d813874156063eae6542c66da2a6971592e46f (patch) | |
| tree | 026f3e70b25934f89c11866dcf84b03fa3226825 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
| parent | 6968aeb5aa64a46175f408fa91e49c19e9558428 (diff) | |
RDMA/hns: Fix error with to_hr_hem_entries_count()
For ilog2(x), if x is 0 and not a constant variable, it will return
-1. And there will be an error as below:
hns3 0000:7d:00.0 hns_0: Local work queue 0x8 catast error, sub_event type is: 2
So modify to_hr_hem_entries_shift() to return 0 if conut is 0.
Fixes: 54d6638765b0 ("RDMA/hns: Optimize WQE buffer size calculating process")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions