OSDN Git Service

RDMA/rxe: Optimize the mr pool struct
authorZhu Yanjun <yanjun.zhu@linux.dev>
Thu, 28 Apr 2022 04:10:28 +0000 (00:10 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 5 May 2022 01:02:58 +0000 (22:02 -0300)
commit08d709d5e1242340e10dd8d0a789b5cea508ccf5
tree552c7ab68d0766b6f498fbe71e0660a58a6ac1ed
parentdb5dfbf5b201df65c1f5332c4d9d5e7c2f42396b
RDMA/rxe: Optimize the mr pool struct

Based on the commit c9f4c695835c ("RDMA/rxe: Reverse the sense of
RXE_POOL_NO_ALLOC"), only the mr pool uses the RXE_POOL_ALLOC, As such,
replace this flags with pool type to save memory.

Link: https://lore.kernel.org/r/20220428041028.1363139-1-yanjun.zhu@linux.dev
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_pool.c
drivers/infiniband/sw/rxe/rxe_pool.h