diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2021-09-14 18:42:04 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-09-24 15:14:59 +0200 |
commit | 47b7f7064b078e7cf3f5a51396d60d8e16a49874 (patch) | |
tree | dc60e8cf6f86702b99020c958c6fdec9aa0baf9b /drivers/infiniband/sw/rxe/rxe_verbs.h | |
parent | RDMA/rxe: Add memory barriers to kernel queues (diff) | |
download | linux-47b7f7064b078e7cf3f5a51396d60d8e16a49874.tar.xz linux-47b7f7064b078e7cf3f5a51396d60d8e16a49874.zip |
RDMA/rxe: Cleanup MR status and type enums
Eliminate RXE_MR_STATE_ZOMBIE which is not compatible with IBA.
RXE_MR_STATE_INVALID is better.
Replace RXE_MR_TYPE_XXX by IB_MR_TYPE_XXX which covers all the needed
types.
Link: https://lore.kernel.org/r/20210914164206.19768-3-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_verbs.h')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_verbs.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h index 1fd53fb3a4b3..f2176a59bd10 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.h +++ b/drivers/infiniband/sw/rxe/rxe_verbs.h @@ -266,18 +266,11 @@ struct rxe_qp { }; enum rxe_mr_state { - RXE_MR_STATE_ZOMBIE, RXE_MR_STATE_INVALID, RXE_MR_STATE_FREE, RXE_MR_STATE_VALID, }; -enum rxe_mr_type { - RXE_MR_TYPE_NONE, - RXE_MR_TYPE_DMA, - RXE_MR_TYPE_MR, -}; - enum rxe_mr_copy_dir { RXE_TO_MR_OBJ, RXE_FROM_MR_OBJ, @@ -313,7 +306,7 @@ struct rxe_mr { struct ib_umem *umem; enum rxe_mr_state state; - enum rxe_mr_type type; + enum ib_mr_type type; u64 va; u64 iova; size_t length; |