RDMA/rxe: Reverse the sense of RXE_POOL_NO_ALLOC
authorBob Pearson <rpearsonhpe@gmail.com>
Fri, 4 Mar 2022 00:07:59 +0000 (18:07 -0600)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 15 Mar 2022 23:49:56 +0000 (20:49 -0300)
commitc9f4c695835c9c2085065a3adc1b57d2005b508b
treeb7ef839f84218c0dcdd19412f2452d5523b15834
parent8a1a0be894da0d06bfbb496cc2dc3057fa83e103
RDMA/rxe: Reverse the sense of RXE_POOL_NO_ALLOC

There is only one remaining object type that allocates its own memory,
that is mr. So the sense of RXE_POOL_NO_ALLOC is changed to
RXE_POOL_ALLOC. Add checks to rxe_alloc() and rxe_add_to_pool() to make
sure the correct call is used for the setting of this flag.

Link: https://lore.kernel.org/r/20220304000808.225811-4-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_pool.c
drivers/infiniband/sw/rxe/rxe_pool.h