diff options
| author | Weihang Li <[email protected]> | 2019-09-04 11:14:42 +0800 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2019-10-21 15:29:37 -0400 |
| commit | e8a07de57ea4ca7c2d604871c52826e66899fc70 (patch) | |
| tree | a32ee8b5a5966e1597d007df9dec881f0b9072af /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 9f7d7064009c37cb26eee4a83302cf077fe180d6 (diff) | |
RDMA/hns: Fix wrong parameters when initial mtt of srq->idx_que
The parameters npages used to initial mtt of srq->idx_que shouldn't be
same with srq's. And page_shift should be calculated from idx_buf_pg_sz.
This patch fixes above issues and use field named npage and page_shift
in hns_roce_buf instead of two temporary variables to let us use them
anywhere.
Fixes: 18df508c7970 ("RDMA/hns: Remove if-else judgment statements for creating srq")
Signed-off-by: Weihang Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions