2 * Copyright (c) 2005 Topspin Communications. All rights reserved.
3 * Copyright (c) 2005 Intel Corporation. All rights reserved.
5 * This software is available to you under a choice of one of two
6 * licenses. You may choose to be licensed under the terms of the GNU
7 * General Public License (GPL) Version 2, available from the file
8 * COPYING in the main directory of this source tree, or the
9 * OpenIB.org BSD license below:
11 * Redistribution and use in source and binary forms, with or
12 * without modification, are permitted provided that the following
15 * - Redistributions of source code must retain the above
16 * copyright notice, this list of conditions and the following
19 * - Redistributions in binary form must reproduce the above
20 * copyright notice, this list of conditions and the following
21 * disclaimer in the documentation and/or other materials
22 * provided with the distribution.
24 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
28 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
29 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
30 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37 #include <rdma/ib_user_sa.h>
39 #define IB_USER_CM_ABI_VERSION 5
42 IB_USER_CM_CMD_CREATE_ID,
43 IB_USER_CM_CMD_DESTROY_ID,
44 IB_USER_CM_CMD_ATTR_ID,
46 IB_USER_CM_CMD_LISTEN,
47 IB_USER_CM_CMD_NOTIFY,
49 IB_USER_CM_CMD_SEND_REQ,
50 IB_USER_CM_CMD_SEND_REP,
51 IB_USER_CM_CMD_SEND_RTU,
52 IB_USER_CM_CMD_SEND_DREQ,
53 IB_USER_CM_CMD_SEND_DREP,
54 IB_USER_CM_CMD_SEND_REJ,
55 IB_USER_CM_CMD_SEND_MRA,
56 IB_USER_CM_CMD_SEND_LAP,
57 IB_USER_CM_CMD_SEND_APR,
58 IB_USER_CM_CMD_SEND_SIDR_REQ,
59 IB_USER_CM_CMD_SEND_SIDR_REP,
62 IB_USER_CM_CMD_INIT_QP_ATTR,
65 * command ABI structures.
67 struct ib_ucm_cmd_hdr {
73 struct ib_ucm_create_id {
78 struct ib_ucm_create_id_resp {
82 struct ib_ucm_destroy_id {
88 struct ib_ucm_destroy_id_resp {
89 __u32 events_reported;
92 struct ib_ucm_attr_id {
98 struct ib_ucm_attr_id_resp {
105 struct ib_ucm_init_qp_attr {
111 struct ib_ucm_listen {
118 struct ib_ucm_notify {
123 struct ib_ucm_private_data {
138 __u64 alternate_path;
141 __u8 responder_resources;
142 __u8 initiator_depth;
143 __u8 remote_cm_response_timeout;
145 __u8 local_cm_response_timeout;
147 __u8 rnr_retry_count;
160 __u8 responder_resources;
161 __u8 initiator_depth;
162 __u8 target_ack_delay;
163 __u8 failover_accepted;
165 __u8 rnr_retry_count;
196 struct ib_ucm_sidr_req {
208 struct ib_ucm_sidr_rep {
220 * event notification ABI structures.
222 struct ib_ucm_event_get {
231 struct ib_ucm_req_event_resp {
232 struct ib_user_path_rec primary_path;
233 struct ib_user_path_rec alternate_path;
234 __be64 remote_ca_guid;
239 __u8 responder_resources;
240 __u8 initiator_depth;
241 __u8 local_cm_response_timeout;
243 __u8 remote_cm_response_timeout;
245 __u8 rnr_retry_count;
251 struct ib_ucm_rep_event_resp {
252 __be64 remote_ca_guid;
256 __u8 responder_resources;
257 __u8 initiator_depth;
258 __u8 target_ack_delay;
259 __u8 failover_accepted;
261 __u8 rnr_retry_count;
266 struct ib_ucm_rej_event_resp {
268 /* ari in ib_ucm_event_get info field. */
271 struct ib_ucm_mra_event_resp {
276 struct ib_ucm_lap_event_resp {
277 struct ib_user_path_rec path;
280 struct ib_ucm_apr_event_resp {
282 /* apr info in ib_ucm_event_get info field. */
285 struct ib_ucm_sidr_req_event_resp {
291 struct ib_ucm_sidr_rep_event_resp {
295 /* info in ib_ucm_event_get info field. */
298 #define IB_UCM_PRES_DATA 0x01
299 #define IB_UCM_PRES_INFO 0x02
300 #define IB_UCM_PRES_PRIMARY 0x04
301 #define IB_UCM_PRES_ALTERNATE 0x08
303 struct ib_ucm_event_resp {
310 struct ib_ucm_req_event_resp req_resp;
311 struct ib_ucm_rep_event_resp rep_resp;
312 struct ib_ucm_rej_event_resp rej_resp;
313 struct ib_ucm_mra_event_resp mra_resp;
314 struct ib_ucm_lap_event_resp lap_resp;
315 struct ib_ucm_apr_event_resp apr_resp;
317 struct ib_ucm_sidr_req_event_resp sidr_req_resp;
318 struct ib_ucm_sidr_rep_event_resp sidr_rep_resp;
324 #endif /* IB_USER_CM_H */