diff options
author | Sean Hefty <sean.hefty@intel.com> | 2007-08-08 18:51:13 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-10-09 22:59:12 -0400 |
commit | 7ce86409adcd2fda652b628173a66e905950ece1 (patch) | |
tree | 37ec32b859f358c77267c465a6e04a642d7c5ff3 /include/rdma | |
parent | a81c994d5eef87ed77cb30d8343d6be296528b3f (diff) |
RDMA/ucma: Allow user space to set service type
Export the ability to set the type of service to user space. Model
the interface after setsockopt.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/rdma_user_cm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/rdma/rdma_user_cm.h b/include/rdma/rdma_user_cm.h index f632b0c007c9..9749c1b34d00 100644 --- a/include/rdma/rdma_user_cm.h +++ b/include/rdma/rdma_user_cm.h | |||
@@ -212,4 +212,22 @@ struct rdma_ucm_event_resp { | |||
212 | } param; | 212 | } param; |
213 | }; | 213 | }; |
214 | 214 | ||
215 | /* Option levels */ | ||
216 | enum { | ||
217 | RDMA_OPTION_ID = 0 | ||
218 | }; | ||
219 | |||
220 | /* Option details */ | ||
221 | enum { | ||
222 | RDMA_OPTION_ID_TOS = 0 | ||
223 | }; | ||
224 | |||
225 | struct rdma_ucm_set_option { | ||
226 | __u64 optval; | ||
227 | __u32 id; | ||
228 | __u32 level; | ||
229 | __u32 optname; | ||
230 | __u32 optlen; | ||
231 | }; | ||
232 | |||
215 | #endif /* RDMA_USER_CM_H */ | 233 | #endif /* RDMA_USER_CM_H */ |