diff options
author | Wenpeng Liang <[email protected]> | 2021-01-30 16:58:00 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-02-08 19:37:33 -0400 |
commit | 1620f09b96ec14c1ff1ff64ee0aeabc027c653d5 (patch) | |
tree | fab480751fe71ff9c20df99e6ef618b647fffe69 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 9dd052474a2645b2a6171d19ad17b05b180d446d (diff) |
RDMA/hns: Bugfix for checking whether the srq is full when post wr
If a user posts WR by wr_list, the head pointer of idx_queue won't be
updated until all wqes are filled, so the judgment of whether head equals
to tail will get a wrong result. Fix above issue and move the head and
tail pointer from the srq structure into the idx_queue structure. After
idx_queue is filled with wqe idx, the head pointer of it will increase.
Fixes: c7bcb13442e1 ("RDMA/hns: Add SRQ support for hip08 kernel mode")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wenpeng Liang <[email protected]>
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions