RDMA/rxe: Add common rxe_prepare_res()
authorXiao Yang <yangx.jy@fujitsu.com>
Tue, 5 Jul 2022 14:52:11 +0000 (22:52 +0800)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 18 Jul 2022 11:36:11 +0000 (14:36 +0300)
commit882736fb3b55a48908134d41aceeea8b0ef3385b
treeb60dbbd2180246abf6679f5646e407d96cec7cb3
parent37da51efe6eaa0560f46803c8c436a48a2084da7
RDMA/rxe: Add common rxe_prepare_res()

It's redundant to prepare resources for Read and Atomic
requests by different functions. Replace them by a common
rxe_prepare_res() with different parameters. In addition,
the common rxe_prepare_res() can also be used by new Flush
and Atomic Write requests in the future.

Link: https://lore.kernel.org/r/20220705145212.12014-1-yangx.jy@fujitsu.com
Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Reviewed-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/rxe/rxe_resp.c