Skip to content

Commit

Permalink
libhns: Extended QP supports the new post send mechanism
Browse files Browse the repository at this point in the history
The ofed provides a new set of post send APIs for extended QP. With the new
APIs, users can post send WR more efficiently. The hns driver provides
support for the new APIs.

Signed-off-by: Xinhao Liu <liuxinhao5@hisilicon.com>
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
  • Loading branch information
Xinhao Liu authored and Wenpeng-Liang committed Mar 21, 2022
1 parent f9848a9 commit 36446a5
Show file tree
Hide file tree
Showing 4 changed files with 792 additions and 46 deletions.
6 changes: 6 additions & 0 deletions providers/hns/hns_roce_u.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,12 @@ struct hns_roce_qp {
unsigned long flags;
int refcnt; /* specially used for XRC */
void *dwqe_page;

/* specific fields for the new post send APIs */
int err;
void *cur_wqe;
unsigned int rb_sq_head; /* roll back sq head */
struct hns_roce_sge_info sge_info;
};

struct hns_roce_av {
Expand Down

0 comments on commit 36446a5

Please sign in to comment.