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
33 * $Id: ib_user_cm.h 2576 2005-06-09 17:00:30Z libor $
39 #include <linux/types.h>
41 #define IB_USER_CM_ABI_VERSION 2
44 IB_USER_CM_CMD_CREATE_ID
,
45 IB_USER_CM_CMD_DESTROY_ID
,
46 IB_USER_CM_CMD_ATTR_ID
,
48 IB_USER_CM_CMD_LISTEN
,
49 IB_USER_CM_CMD_ESTABLISH
,
51 IB_USER_CM_CMD_SEND_REQ
,
52 IB_USER_CM_CMD_SEND_REP
,
53 IB_USER_CM_CMD_SEND_RTU
,
54 IB_USER_CM_CMD_SEND_DREQ
,
55 IB_USER_CM_CMD_SEND_DREP
,
56 IB_USER_CM_CMD_SEND_REJ
,
57 IB_USER_CM_CMD_SEND_MRA
,
58 IB_USER_CM_CMD_SEND_LAP
,
59 IB_USER_CM_CMD_SEND_APR
,
60 IB_USER_CM_CMD_SEND_SIDR_REQ
,
61 IB_USER_CM_CMD_SEND_SIDR_REP
,
64 IB_USER_CM_CMD_INIT_QP_ATTR
,
67 * command ABI structures.
69 struct ib_ucm_cmd_hdr
{
75 struct ib_ucm_create_id
{
80 struct ib_ucm_create_id_resp
{
84 struct ib_ucm_destroy_id
{
89 struct ib_ucm_destroy_id_resp
{
90 __u32 events_reported
;
93 struct ib_ucm_attr_id
{
98 struct ib_ucm_attr_id_resp
{
105 struct ib_ucm_init_qp_attr
{
111 struct ib_ucm_ah_attr
{
113 __u32 grh_flow_label
;
118 __u8 grh_traffic_class
;
126 struct ib_ucm_init_qp_attr_resp
{
131 __u32 path_mig_state
;
136 __u32 qp_access_flags
;
138 struct ib_ucm_ah_attr ah_attr
;
139 struct ib_ucm_ah_attr alt_ah_attr
;
146 __u32 max_inline_data
;
149 __u16 alt_pkey_index
;
150 __u8 en_sqd_async_notify
;
153 __u8 max_dest_rd_atomic
;
163 struct ib_ucm_listen
{
169 struct ib_ucm_establish
{
173 struct ib_ucm_private_data
{
180 struct ib_ucm_path_rec
{
197 __u8 packet_life_time_selector
;
198 __u8 packet_life_time
;
210 __u64 alternate_path
;
213 __u8 responder_resources
;
214 __u8 initiator_depth
;
215 __u8 remote_cm_response_timeout
;
217 __u8 local_cm_response_timeout
;
219 __u8 rnr_retry_count
;
232 __u8 responder_resources
;
233 __u8 initiator_depth
;
234 __u8 target_ack_delay
;
235 __u8 failover_accepted
;
237 __u8 rnr_retry_count
;
267 struct ib_ucm_sidr_req
{
278 struct ib_ucm_sidr_rep
{
290 * event notification ABI structures.
292 struct ib_ucm_event_get
{
301 struct ib_ucm_req_event_resp
{
304 struct ib_ucm_path_rec primary_path
;
305 struct ib_ucm_path_rec alternate_path
;
306 __be64 remote_ca_guid
;
311 __u8 responder_resources
;
312 __u8 initiator_depth
;
313 __u8 local_cm_response_timeout
;
315 __u8 remote_cm_response_timeout
;
317 __u8 rnr_retry_count
;
321 struct ib_ucm_rep_event_resp
{
322 __be64 remote_ca_guid
;
326 __u8 responder_resources
;
327 __u8 initiator_depth
;
328 __u8 target_ack_delay
;
329 __u8 failover_accepted
;
331 __u8 rnr_retry_count
;
336 struct ib_ucm_rej_event_resp
{
338 /* ari in ib_ucm_event_get info field. */
341 struct ib_ucm_mra_event_resp
{
346 struct ib_ucm_lap_event_resp
{
347 struct ib_ucm_path_rec path
;
350 struct ib_ucm_apr_event_resp
{
352 /* apr info in ib_ucm_event_get info field. */
355 struct ib_ucm_sidr_req_event_resp
{
362 struct ib_ucm_sidr_rep_event_resp
{
366 /* info in ib_ucm_event_get info field. */
369 #define IB_UCM_PRES_DATA 0x01
370 #define IB_UCM_PRES_INFO 0x02
371 #define IB_UCM_PRES_PRIMARY 0x04
372 #define IB_UCM_PRES_ALTERNATE 0x08
374 struct ib_ucm_event_resp
{
380 struct ib_ucm_req_event_resp req_resp
;
381 struct ib_ucm_rep_event_resp rep_resp
;
382 struct ib_ucm_rej_event_resp rej_resp
;
383 struct ib_ucm_mra_event_resp mra_resp
;
384 struct ib_ucm_lap_event_resp lap_resp
;
385 struct ib_ucm_apr_event_resp apr_resp
;
387 struct ib_ucm_sidr_req_event_resp sidr_req_resp
;
388 struct ib_ucm_sidr_rep_event_resp sidr_rep_resp
;
394 #endif /* IB_USER_CM_H */