summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2016-08-26 17:38:13 +0000
committerNavdeep Parhar <np@FreeBSD.org>2016-08-26 17:38:13 +0000
commit7df135c055d74b467b36cbdd19936dd787fa3078 (patch)
tree40e242bf00e20e304c7b4093b4000e15bcf1050c /contrib
parent41638b75ce185430f18112f66b50471ac6306c3c (diff)
downloadsrc-test2-7df135c055d74b467b36cbdd19936dd787fa3078.tar.gz
src-test2-7df135c055d74b467b36cbdd19936dd787fa3078.zip
Notes
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ofed/libcxgb4/src/qp.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/contrib/ofed/libcxgb4/src/qp.c b/contrib/ofed/libcxgb4/src/qp.c
index 71cc49b6e8ff..b0e3def5006c 100644
--- a/contrib/ofed/libcxgb4/src/qp.c
+++ b/contrib/ofed/libcxgb4/src/qp.c
@@ -392,11 +392,9 @@ int c4iw_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
t4_sq_produce(&qhp->wq, len16);
idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE);
}
- if (t4_wq_db_enabled(&qhp->wq)) {
- t4_ring_sq_db(&qhp->wq, idx, dev_is_t5(qhp->rhp),
- len16, wqe);
- } else
- ring_kernel_db(qhp, qhp->wq.sq.qid, idx);
+
+ t4_ring_sq_db(&qhp->wq, idx, dev_is_t5(qhp->rhp),
+ len16, wqe);
qhp->wq.sq.queue[qhp->wq.sq.size].status.host_wq_pidx = \
(qhp->wq.sq.wq_pidx);
pthread_spin_unlock(&qhp->lock);
@@ -458,11 +456,9 @@ int c4iw_post_receive(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
wr = wr->next;
num_wrs--;
}
- if (t4_wq_db_enabled(&qhp->wq))
- t4_ring_rq_db(&qhp->wq, idx, dev_is_t5(qhp->rhp),
- len16, wqe);
- else
- ring_kernel_db(qhp, qhp->wq.rq.qid, idx);
+
+ t4_ring_rq_db(&qhp->wq, idx, dev_is_t5(qhp->rhp),
+ len16, wqe);
qhp->wq.rq.queue[qhp->wq.rq.size].status.host_wq_pidx = \
(qhp->wq.rq.wq_pidx);
pthread_spin_unlock(&qhp->lock);