RDMA/qedr: Add support for read with invalidate, supported in iWARP
iWARP supports read with invalidate. There is an assumption that read with invalidate will only be called on an iWARP device Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com> Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
f5b1b1775b
commit
fb1a22be9d
|
@ -655,8 +655,10 @@ struct rdma_sq_rdma_wqe_1st {
|
|||
#define RDMA_SQ_RDMA_WQE_1ST_INLINE_FLG_SHIFT 4
|
||||
#define RDMA_SQ_RDMA_WQE_1ST_DIF_ON_HOST_FLG_MASK 0x1
|
||||
#define RDMA_SQ_RDMA_WQE_1ST_DIF_ON_HOST_FLG_SHIFT 5
|
||||
#define RDMA_SQ_RDMA_WQE_1ST_RESERVED0_MASK 0x3
|
||||
#define RDMA_SQ_RDMA_WQE_1ST_RESERVED0_SHIFT 6
|
||||
#define RDMA_SQ_RDMA_WQE_1ST_READ_INV_FLG_MASK 0x1
|
||||
#define RDMA_SQ_RDMA_WQE_1ST_READ_INV_FLG_SHIFT 6
|
||||
#define RDMA_SQ_RDMA_WQE_1ST_RESERVED0_MASK 0x1
|
||||
#define RDMA_SQ_RDMA_WQE_1ST_RESERVED0_SHIFT 7
|
||||
u8 wqe_size;
|
||||
u8 prev_wqe_size;
|
||||
};
|
||||
|
|
|
@ -2845,6 +2845,7 @@ static enum ib_wc_opcode qedr_ib_to_wc_opcode(enum ib_wr_opcode opcode)
|
|||
case IB_WR_SEND_WITH_INV:
|
||||
return IB_WC_SEND;
|
||||
case IB_WR_RDMA_READ:
|
||||
case IB_WR_RDMA_READ_WITH_INV:
|
||||
return IB_WC_RDMA_READ;
|
||||
case IB_WR_ATOMIC_CMP_AND_SWP:
|
||||
return IB_WC_COMP_SWAP;
|
||||
|
@ -3005,11 +3006,8 @@ static int __qedr_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
|
|||
qp->wqe_wr_id[qp->sq.prod].bytes_len = rwqe->length;
|
||||
break;
|
||||
case IB_WR_RDMA_READ_WITH_INV:
|
||||
DP_ERR(dev,
|
||||
"RDMA READ WITH INVALIDATE not supported\n");
|
||||
*bad_wr = wr;
|
||||
rc = -EINVAL;
|
||||
break;
|
||||
SET_FIELD2(wqe->flags, RDMA_SQ_RDMA_WQE_1ST_READ_INV_FLG, 1);
|
||||
/* fallthrough... same is identical to RDMA READ */
|
||||
|
||||
case IB_WR_RDMA_READ:
|
||||
wqe->req_type = RDMA_SQ_REQ_TYPE_RDMA_RD;
|
||||
|
|
Loading…
Reference in New Issue