diff options
author | Jonathan Lallinger <jonathan@ogc.us> | 2011-10-13 14:56:59 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-10-14 17:23:40 -0400 |
commit | e14d62c05c0b8eff61c6fd46b4a78fb27c8cf38b (patch) | |
tree | bc47a8d6e12ac7d3ef12aa5de600d2bd5c62ff97 /drivers/infiniband/hw/cxgb4/cq.c | |
parent | 01e7da6ba53ca4d6189a1eae45607c0331c871f2 (diff) |
RDMA/cxgb4: Use correct QID in insert_recv_cqe()
When creating flushed receive CQEs, set the QPID field in the t4_cqe
to the SQ QID and not the RQ QID. Otherwise the poll code will not
find the correct QP context.
Signed-off by: Jonathan Lallinger <jonathan@ogc.us>
Signed-off by: Steve Wise <swise@ogc.us>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/cq.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cq.c b/drivers/infiniband/hw/cxgb4/cq.c index 1720dc790d1..901c5fbf71a 100644 --- a/drivers/infiniband/hw/cxgb4/cq.c +++ b/drivers/infiniband/hw/cxgb4/cq.c | |||
@@ -185,7 +185,7 @@ static void insert_recv_cqe(struct t4_wq *wq, struct t4_cq *cq) | |||
185 | V_CQE_OPCODE(FW_RI_SEND) | | 185 | V_CQE_OPCODE(FW_RI_SEND) | |
186 | V_CQE_TYPE(0) | | 186 | V_CQE_TYPE(0) | |
187 | V_CQE_SWCQE(1) | | 187 | V_CQE_SWCQE(1) | |
188 | V_CQE_QPID(wq->rq.qid)); | 188 | V_CQE_QPID(wq->sq.qid)); |
189 | cqe.bits_type_ts = cpu_to_be64(V_CQE_GENBIT((u64)cq->gen)); | 189 | cqe.bits_type_ts = cpu_to_be64(V_CQE_GENBIT((u64)cq->gen)); |
190 | cq->sw_queue[cq->sw_pidx] = cqe; | 190 | cq->sw_queue[cq->sw_pidx] = cqe; |
191 | t4_swcq_produce(cq); | 191 | t4_swcq_produce(cq); |