RDMA/rxe: Fix rxe_modify_srq
authorBob Pearson <rpearsonhpe@gmail.com>
Tue, 20 Jun 2023 14:01:43 +0000 (09:01 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 31 Jul 2023 18:24:12 +0000 (15:24 -0300)
commitcc28f351155def8db209647f2e20a59a7080825b
tree149cd81b8180f587f8eea8bfb6ec58cebc972a8c
parent5993b75d0bc71cd2b441d174b028fc36180f032c
RDMA/rxe: Fix rxe_modify_srq

This patch corrects an error in rxe_modify_srq where if the
caller changes the srq size the actual new value is not returned
to the caller since it may be larger than what is requested.
Additionally it open codes the subroutine rcv_wqe_size() which
adds very little value, and makes some whitespace changes.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Link: https://lore.kernel.org/r/20230620140142.9452-1-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_loc.h
drivers/infiniband/sw/rxe/rxe_srq.c