Skip to content

Commit ebb6c0c

Browse files
mustafakismailjgunthorpe
authored andcommitted
i40iw: Remove setting of rem_addr.len
Remove setting of rem_addr.len before calling iw_rdma_write, iw_inline_rdma_write and rdma_read. rem_addr.len is not used in those functions. Signed-off-by: Mustafa Ismail <[email protected]> Signed-off-by: Shiraz Saleem <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 72b30e9 commit ebb6c0c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/infiniband/hw/i40iw/i40iw_verbs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,14 +2243,12 @@ static int i40iw_post_send(struct ib_qp *ibqp,
22432243
info.op.inline_rdma_write.len = ib_wr->sg_list[0].length;
22442244
info.op.inline_rdma_write.rem_addr.tag_off = rdma_wr(ib_wr)->remote_addr;
22452245
info.op.inline_rdma_write.rem_addr.stag = rdma_wr(ib_wr)->rkey;
2246-
info.op.inline_rdma_write.rem_addr.len = ib_wr->sg_list->length;
22472246
ret = ukqp->ops.iw_inline_rdma_write(ukqp, &info, false);
22482247
} else {
22492248
info.op.rdma_write.lo_sg_list = (void *)ib_wr->sg_list;
22502249
info.op.rdma_write.num_lo_sges = ib_wr->num_sge;
22512250
info.op.rdma_write.rem_addr.tag_off = rdma_wr(ib_wr)->remote_addr;
22522251
info.op.rdma_write.rem_addr.stag = rdma_wr(ib_wr)->rkey;
2253-
info.op.rdma_write.rem_addr.len = ib_wr->sg_list->length;
22542252
ret = ukqp->ops.iw_rdma_write(ukqp, &info, false);
22552253
}
22562254

@@ -2272,7 +2270,6 @@ static int i40iw_post_send(struct ib_qp *ibqp,
22722270
info.op_type = I40IW_OP_TYPE_RDMA_READ;
22732271
info.op.rdma_read.rem_addr.tag_off = rdma_wr(ib_wr)->remote_addr;
22742272
info.op.rdma_read.rem_addr.stag = rdma_wr(ib_wr)->rkey;
2275-
info.op.rdma_read.rem_addr.len = ib_wr->sg_list->length;
22762273
info.op.rdma_read.lo_addr.tag_off = ib_wr->sg_list->addr;
22772274
info.op.rdma_read.lo_addr.stag = ib_wr->sg_list->lkey;
22782275
info.op.rdma_read.lo_addr.len = ib_wr->sg_list->length;

0 commit comments

Comments
 (0)