Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f1fb507 authored by Steve Wise's avatar Steve Wise Committed by Roland Dreier
Browse files

RDMA/cxgb4: Support IB_WR_READ_WITH_INV opcode

parent 4ab1eb9c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -572,8 +572,12 @@ int c4iw_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
			err = build_rdma_write(wqe, wr, &len16);
			break;
		case IB_WR_RDMA_READ:
		case IB_WR_RDMA_READ_WITH_INV:
			fw_opcode = FW_RI_RDMA_READ_WR;
			swsqe->opcode = FW_RI_READ_REQ;
			if (wr->opcode == IB_WR_RDMA_READ_WITH_INV)
				fw_flags |= FW_RI_RDMA_READ_INVALIDATE;
			else
				fw_flags = 0;
			err = build_rdma_read(wqe, wr, &len16);
			if (err)