summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNir Muchtar <nirm@voltaire.com>2011-05-20 20:46:11 +0200
committerRoland Dreier <roland@purestorage.com>2011-05-25 22:46:22 +0200
commit550e5ca77e96989c5e19f60e017205b2bcc615a5 (patch)
treeac2a52507f095a476875eab4ead8957655671bc3 /include
parentRDMA: Add netlink infrastructure (diff)
downloadlinux-550e5ca77e96989c5e19f60e017205b2bcc615a5.tar.xz
linux-550e5ca77e96989c5e19f60e017205b2bcc615a5.zip
RDMA/cma: Export enum cma_state in <rdma/rdma_cm.h>
Move cma.c's internal definition of enum cma_state to enum rdma_cm_state in an exported header so that it can be exported via RDMA netlink. Signed-off-by: Nir Muchtar <nirm@voltaire.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include')
-rw-r--r--include/rdma/rdma_cm.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h
index 169f7a53fb0c..d5b2265b7ce8 100644
--- a/include/rdma/rdma_cm.h
+++ b/include/rdma/rdma_cm.h
@@ -111,6 +111,20 @@ struct rdma_cm_event {
} param;
};
+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_cm_id;
/**