diff options
author | Parav Pandit <parav@mellanox.com> | 2018-03-29 13:26:33 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-03-29 13:54:21 -0600 |
commit | 218b9e3eb8b53785a98dfa2e4b7c700103085d33 (patch) | |
tree | 702b6f0fd211b3053a82bbb030bc819d441f0a6f /drivers/infiniband/core/cma_priv.h | |
parent | fd59015d68ee5bb0397a13cc02dbce9525f7c593 (diff) | |
download | linux-218b9e3eb8b53785a98dfa2e4b7c700103085d33.tar.gz linux-218b9e3eb8b53785a98dfa2e4b7c700103085d33.tar.bz2 linux-218b9e3eb8b53785a98dfa2e4b7c700103085d33.zip |
RDMA/cma: Move rdma_cm_state to cma_priv.h
rdma_cm_state enum is internal to rdma_cm kernel module.
It is not required to expose state enums to ULP modules.
So lets keep its scope limited to rdma_cm module in cma_priv.h file.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/cma_priv.h')
-rw-r--r-- | drivers/infiniband/core/cma_priv.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma_priv.h b/drivers/infiniband/core/cma_priv.h index 56f52b70c346..194cfe78c447 100644 --- a/drivers/infiniband/core/cma_priv.h +++ b/drivers/infiniband/core/cma_priv.h @@ -36,6 +36,20 @@ #ifndef _CMA_PRIV_H #define _CMA_PRIV_H +enum rdma_cm_state { + RDMA_CM_IDLE, + RDMA_CM_ADDR_QUERY, + RDMA_CM_ADDR_RESOLVED, + RDMA_CM_ROUTE_QUERY, + RDMA_CM_ROUTE_RESOLVED, + RDMA_CM_CONNECT, + RDMA_CM_DISCONNECT, + RDMA_CM_ADDR_BOUND, + RDMA_CM_LISTEN, + RDMA_CM_DEVICE_REMOVAL, + RDMA_CM_DESTROYING +}; + struct rdma_id_private { struct rdma_cm_id id; |