|
@@ -2865,11 +2865,11 @@ int nes_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
|
|
|
|
|
next_iwarp_state = NES_CQP_QP_IWARP_STATE_ERROR;
|
|
|
/* next_iwarp_state = (NES_CQP_QP_IWARP_STATE_TERMINATE | 0x02000000); */
|
|
|
- if (nesqp->hte_added) {
|
|
|
- nes_debug(NES_DBG_MOD_QP, "set CQP_QP_DEL_HTE\n");
|
|
|
- next_iwarp_state |= NES_CQP_QP_DEL_HTE;
|
|
|
- nesqp->hte_added = 0;
|
|
|
- }
|
|
|
+ if (nesqp->hte_added) {
|
|
|
+ nes_debug(NES_DBG_MOD_QP, "set CQP_QP_DEL_HTE\n");
|
|
|
+ next_iwarp_state |= NES_CQP_QP_DEL_HTE;
|
|
|
+ nesqp->hte_added = 0;
|
|
|
+ }
|
|
|
if ((nesqp->hw_tcp_state > NES_AEQE_TCP_STATE_CLOSED) &&
|
|
|
(nesdev->iw_status) &&
|
|
|
(nesqp->hw_tcp_state != NES_AEQE_TCP_STATE_TIME_WAIT)) {
|
|
@@ -3560,7 +3560,7 @@ static int nes_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry)
|
|
|
entry->byte_len = le32_to_cpu(cqe.cqe_words[NES_CQE_PAYLOAD_LENGTH_IDX]);
|
|
|
wrid = ((u64)(le32_to_cpu(nesqp->hwqp.rq_vbase[wqe_index].wqe_words[NES_IWARP_RQ_WQE_COMP_SCRATCH_LOW_IDX]))) |
|
|
|
((u64)(le32_to_cpu(nesqp->hwqp.rq_vbase[wqe_index].wqe_words[NES_IWARP_RQ_WQE_COMP_SCRATCH_HIGH_IDX]))<<32);
|
|
|
- entry->opcode = IB_WC_RECV;
|
|
|
+ entry->opcode = IB_WC_RECV;
|
|
|
|
|
|
nesqp->hwqp.rq_tail = (wqe_index+1)&(nesqp->hwqp.rq_size - 1);
|
|
|
if ((entry->status != IB_WC_SUCCESS) && (nesqp->hwqp.rq_tail != nesqp->hwqp.rq_head)) {
|