diff options
author | Weihang Li <liweihang@hisilicon.com> | 2019-09-04 11:14:42 +0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-10-21 15:29:37 -0400 |
commit | e8a07de57ea4ca7c2d604871c52826e66899fc70 (patch) | |
tree | a32ee8b5a5966e1597d007df9dec881f0b9072af /tools/perf/scripts/python/export-to-postgresql.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 <liweihang@hisilicon.com>
Link: https://lore.kernel.org/r/1567566885-23088-3-git-send-email-liweihang@hisilicon.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions