|
@@ -142,8 +142,8 @@ static int hns_roce_v2_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
|
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
|
unsigned int ind;
|
|
unsigned int ind;
|
|
|
void *wqe = NULL;
|
|
void *wqe = NULL;
|
|
|
- u32 tmp_len = 0;
|
|
|
|
|
bool loopback;
|
|
bool loopback;
|
|
|
|
|
+ u32 tmp_len;
|
|
|
int ret = 0;
|
|
int ret = 0;
|
|
|
u8 *smac;
|
|
u8 *smac;
|
|
|
int nreq;
|
|
int nreq;
|
|
@@ -189,6 +189,7 @@ static int hns_roce_v2_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
|
|
|
|
|
|
|
|
owner_bit =
|
|
owner_bit =
|
|
|
~(((qp->sq.head + nreq) >> ilog2(qp->sq.wqe_cnt)) & 0x1);
|
|
~(((qp->sq.head + nreq) >> ilog2(qp->sq.wqe_cnt)) & 0x1);
|
|
|
|
|
+ tmp_len = 0;
|
|
|
|
|
|
|
|
/* Corresponding to the QP type, wqe process separately */
|
|
/* Corresponding to the QP type, wqe process separately */
|
|
|
if (ibqp->qp_type == IB_QPT_GSI) {
|
|
if (ibqp->qp_type == IB_QPT_GSI) {
|