diff options
author | Amrani, Ram <Ram.Amrani@cavium.com> | 2016-12-22 07:40:37 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-22 11:36:12 -0500 |
commit | 8b0cabc650a95a4f44de99aae6e8c128d70a40cd (patch) | |
tree | 7783d78fe287dad6565e95ec9067d4e6e5a4ab5a /drivers/infiniband | |
parent | b4c2cc48aa0be767281669bff9f230e81ef27c56 (diff) |
qedr: ignore inline flag in read verbs
In the current implementation a read verb with IB_SEND_INLINE may be
illegally configured.
In this fix we ignore the inline bit in the case of a read verb.
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Reviewed-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/qedr/verbs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 0237ff986829..9af2b4f3b62f 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c | |||
@@ -2636,7 +2636,9 @@ static u32 qedr_prepare_sq_rdma_data(struct qedr_dev *dev, | |||
2636 | rwqe2->r_key = cpu_to_le32(rdma_wr(wr)->rkey); | 2636 | rwqe2->r_key = cpu_to_le32(rdma_wr(wr)->rkey); |
2637 | DMA_REGPAIR_LE(rwqe2->remote_va, rdma_wr(wr)->remote_addr); | 2637 | DMA_REGPAIR_LE(rwqe2->remote_va, rdma_wr(wr)->remote_addr); |
2638 | 2638 | ||
2639 | if (wr->send_flags & IB_SEND_INLINE) { | 2639 | if (wr->send_flags & IB_SEND_INLINE && |
2640 | (wr->opcode == IB_WR_RDMA_WRITE_WITH_IMM || | ||
2641 | wr->opcode == IB_WR_RDMA_WRITE)) { | ||
2640 | u8 flags = 0; | 2642 | u8 flags = 0; |
2641 | 2643 | ||
2642 | SET_FIELD2(flags, RDMA_SQ_RDMA_WQE_1ST_INLINE_FLG, 1); | 2644 | SET_FIELD2(flags, RDMA_SQ_RDMA_WQE_1ST_INLINE_FLG, 1); |