Skip to content

Commit

Permalink
libhns: Reimplement verbs of post_send and post_recv for hip08 RoCE
Browse files Browse the repository at this point in the history
The verbs of post_send and post recv need to fill sqwqe and rqwqe and
issue the doorbell cmd. The sqwqe&rqwqe&doorbell structures are
different between hip06 and hip08 etc. Hence, It needs to rewrite
the verbs of post_send and post_recv.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Wei Hu <xavier.huwei@huawei.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
  • Loading branch information
oulijun authored and rleon committed Oct 25, 2017
1 parent a7d029e commit cbdf5e3
Show file tree
Hide file tree
Showing 4 changed files with 491 additions and 17 deletions.
8 changes: 8 additions & 0 deletions providers/hns/hns_roce_u.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ struct hns_roce_wq {
int offset;
};

struct hns_roce_sge_ex {
int offset;
unsigned int sge_cnt;
int sge_shift;
};

struct hns_roce_qp {
struct ibv_qp ibv_qp;
struct hns_roce_buf buf;
Expand All @@ -167,6 +173,8 @@ struct hns_roce_qp {
unsigned int sq_signal_bits;
struct hns_roce_wq sq;
struct hns_roce_wq rq;
struct hns_roce_sge_ex sge;
unsigned int next_sge;
int port_num;
int sl;
};
Expand Down
Loading

0 comments on commit cbdf5e3

Please # to comment.