diff options
Diffstat (limited to 'drivers/infiniband/hw/cxgb3')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_provider.c | 3 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_qp.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c index 50e1f2a16e0c..ca7265443c05 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_provider.c +++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c | |||
@@ -1109,8 +1109,7 @@ int iwch_register_device(struct iwch_dev *dev) | |||
1109 | memcpy(&dev->ibdev.node_guid, dev->rdev.t3cdev_p->lldev->dev_addr, 6); | 1109 | memcpy(&dev->ibdev.node_guid, dev->rdev.t3cdev_p->lldev->dev_addr, 6); |
1110 | dev->ibdev.owner = THIS_MODULE; | 1110 | dev->ibdev.owner = THIS_MODULE; |
1111 | dev->device_cap_flags = | 1111 | dev->device_cap_flags = |
1112 | (IB_DEVICE_ZERO_STAG | | 1112 | (IB_DEVICE_ZERO_STAG | IB_DEVICE_MEM_WINDOW); |
1113 | IB_DEVICE_SEND_W_INV | IB_DEVICE_MEM_WINDOW); | ||
1114 | 1113 | ||
1115 | dev->ibdev.uverbs_cmd_mask = | 1114 | dev->ibdev.uverbs_cmd_mask = |
1116 | (1ull << IB_USER_VERBS_CMD_GET_CONTEXT) | | 1115 | (1ull << IB_USER_VERBS_CMD_GET_CONTEXT) | |
diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c b/drivers/infiniband/hw/cxgb3/iwch_qp.c index bc5d9b0813e5..8891c3b0a3d5 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_qp.c +++ b/drivers/infiniband/hw/cxgb3/iwch_qp.c | |||
@@ -72,7 +72,7 @@ static int iwch_build_rdma_send(union t3_wr *wqe, struct ib_send_wr *wr, | |||
72 | wqe->send.reserved[2] = 0; | 72 | wqe->send.reserved[2] = 0; |
73 | if (wr->opcode == IB_WR_SEND_WITH_IMM) { | 73 | if (wr->opcode == IB_WR_SEND_WITH_IMM) { |
74 | plen = 4; | 74 | plen = 4; |
75 | wqe->send.sgl[0].stag = wr->imm_data; | 75 | wqe->send.sgl[0].stag = wr->ex.imm_data; |
76 | wqe->send.sgl[0].len = __constant_cpu_to_be32(0); | 76 | wqe->send.sgl[0].len = __constant_cpu_to_be32(0); |
77 | wqe->send.num_sgle = __constant_cpu_to_be32(0); | 77 | wqe->send.num_sgle = __constant_cpu_to_be32(0); |
78 | *flit_cnt = 5; | 78 | *flit_cnt = 5; |
@@ -112,7 +112,7 @@ static int iwch_build_rdma_write(union t3_wr *wqe, struct ib_send_wr *wr, | |||
112 | 112 | ||
113 | if (wr->opcode == IB_WR_RDMA_WRITE_WITH_IMM) { | 113 | if (wr->opcode == IB_WR_RDMA_WRITE_WITH_IMM) { |
114 | plen = 4; | 114 | plen = 4; |
115 | wqe->write.sgl[0].stag = wr->imm_data; | 115 | wqe->write.sgl[0].stag = wr->ex.imm_data; |
116 | wqe->write.sgl[0].len = __constant_cpu_to_be32(0); | 116 | wqe->write.sgl[0].len = __constant_cpu_to_be32(0); |
117 | wqe->write.num_sgle = __constant_cpu_to_be32(0); | 117 | wqe->write.num_sgle = __constant_cpu_to_be32(0); |
118 | *flit_cnt = 6; | 118 | *flit_cnt = 6; |