All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] RDMA/rxe: skip adjusting remote addr for write in retry operation
@ 2022-05-02  5:39 Chengguang Xu
  2022-05-02 17:15 ` Pearson, Robert B
  2022-05-06 16:15 ` Jason Gunthorpe
  0 siblings, 2 replies; 5+ messages in thread
From: Chengguang Xu @ 2022-05-02  5:39 UTC (permalink / raw)
  To: zyjzyj2000, jgg, leon; +Cc: linux-rdma, Chengguang Xu

For write request the remote addr will be sent only with first packet
so we don't have to adjust wqe->iova in retry operation.

Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
---
 drivers/infiniband/sw/rxe/rxe_req.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c
index ae5fbc79dd5c..f08010651ef7 100644
--- a/drivers/infiniband/sw/rxe/rxe_req.c
+++ b/drivers/infiniband/sw/rxe/rxe_req.c
@@ -33,8 +33,6 @@ static inline void retry_first_write_send(struct rxe_qp *qp,
 		} else {
 			advance_dma_data(&wqe->dma, to_send);
 		}
-		if (mask & WR_WRITE_MASK)
-			wqe->iova += qp->mtu;
 	}
 }
 
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-06 16:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02  5:39 [RFC PATCH] RDMA/rxe: skip adjusting remote addr for write in retry operation Chengguang Xu
2022-05-02 17:15 ` Pearson, Robert B
2022-05-03 15:04   ` Chengguang Xu
2022-05-04 15:25     ` Robert Pearson
2022-05-06 16:15 ` Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.