RDMA/rxe: Remove IB_SRQ_INIT_MASK
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 21 Apr 2022 01:40:34 +0000 (20:40 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 6 May 2022 18:33:31 +0000 (15:33 -0300)
commit0b1fbfb9e9058e6eae6564cdb4ed0003d766445c
tree50ab91fbdb704ec3bf9ddbe5c9d343e23a5e9bd5
parent1a7085b34291a266a0413795c27061eb707104f7
RDMA/rxe: Remove IB_SRQ_INIT_MASK

Currently the #define IB_SRQ_INIT_MASK is used to distinguish the
rxe_create_srq verb from the rxe_modify_srq verb so that some code can be
shared between these two subroutines.

This commit splits rxe_srq_chk_attr into two subroutines: rxe_srq_chk_init
and rxe_srq_chk_attr which handle the create_srq and modify_srq verbs
separately.

Link: https://lore.kernel.org/r/20220421014042.26985-2-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
drivers/infiniband/sw/rxe/rxe_verbs.c