diff options
author | Chengguang Xu <cgxu519@mykernel.net> | 2022-05-02 07:39:07 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-05-06 18:12:56 +0200 |
commit | 1a7085b34291a266a0413795c27061eb707104f7 (patch) | |
tree | de6fb7054bb188680319d2808e8385de70430c6c /drivers/infiniband | |
parent | RDMA/rxe: Optimize the mr pool struct (diff) | |
download | linux-1a7085b34291a266a0413795c27061eb707104f7.tar.xz linux-1a7085b34291a266a0413795c27061eb707104f7.zip |
RDMA/rxe: Skip adjusting remote addr for write in retry operation
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.
Link: https://lore.kernel.org/r/20220502053907.6388-1-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Reviewed-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_req.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c index c99d1b24352c..e85a529699de 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; } } |