diff options
author | Zhu Yanjun <yanjun.zhu@linux.dev> | 2022-04-28 00:10:28 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-05-04 22:02:58 -0300 |
commit | 08d709d5e1242340e10dd8d0a789b5cea508ccf5 (patch) | |
tree | 552c7ab68d0766b6f498fbe71e0660a58a6ac1ed /drivers/infiniband/sw/rxe/rxe_pool.h | |
parent | RDMA/hns: Remove the num_cqc_timer variable (diff) | |
download | linux-dev-08d709d5e1242340e10dd8d0a789b5cea508ccf5.tar.xz linux-dev-08d709d5e1242340e10dd8d0a789b5cea508ccf5.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_pool.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_pool.h b/drivers/infiniband/sw/rxe/rxe_pool.h index 24bcc786c1b3..0860660d65ec 100644 --- a/drivers/infiniband/sw/rxe/rxe_pool.h +++ b/drivers/infiniband/sw/rxe/rxe_pool.h @@ -7,10 +7,6 @@ #ifndef RXE_POOL_H #define RXE_POOL_H -enum rxe_pool_flags { - RXE_POOL_ALLOC = BIT(1), -}; - enum rxe_elem_type { RXE_TYPE_UC, RXE_TYPE_PD, @@ -35,7 +31,6 @@ struct rxe_pool { struct rxe_dev *rxe; const char *name; void (*cleanup)(struct rxe_pool_elem *elem); - enum rxe_pool_flags flags; enum rxe_elem_type type; unsigned int max_elem; |