1 /*
2  * This file contains definitions used in OFED defined user/kernel
3  * interfaces. These are imported from the OFED header ib_user_sa.h. Oracle
4  * elects to have and use the contents of ib_user_sa.h under and governed
5  * by the OpenIB.org BSD license (see below for full license text). However,
6  * the following notice accompanied the original version of this file:
7  */
8 
9 /*
10  * Copyright (c) 2005 Intel Corporation.  All rights reserved.
11  *
12  * This software is available to you under a choice of one of two
13  * licenses.  You may choose to be licensed under the terms of the GNU
14  * General Public License (GPL) Version 2, available from the file
15  * COPYING in the main directory of this source tree, or the
16  * OpenIB.org BSD license below:
17  *
18  *     Redistribution and use in source and binary forms, with or
19  *     without modification, are permitted provided that the following
20  *     conditions are met:
21  *
22  *      - Redistributions of source code must retain the above
23  *        copyright notice, this list of conditions and the following
24  *        disclaimer.
25  *
26  *      - Redistributions in binary form must reproduce the above
27  *        copyright notice, this list of conditions and the following
28  *        disclaimer in the documentation and/or other materials
29  *        provided with the distribution.
30  *
31  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
33  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
35  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
36  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
37  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38  * SOFTWARE.
39  */
40 
41 #ifndef _SYS_IB_CLIENTS_OF_RDMA_IB_USER_SA_H
42 #define	_SYS_IB_CLIENTS_OF_RDMA_IB_USER_SA_H
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 struct ib_user_path_rec {
49 	uint8_t		dgid[16];
50 	uint8_t		sgid[16];
51 	uint16_t	dlid;
52 	uint16_t	slid;
53 	uint32_t	raw_traffic;
54 	uint32_t	flow_label;
55 	uint32_t	reversible;
56 	uint32_t	mtu;
57 	uint16_t	pkey;
58 	uint8_t		hop_limit;
59 	uint8_t		traffic_class;
60 	uint8_t		numb_path;
61 	uint8_t		sl;
62 	uint8_t		mtu_selector;
63 	uint8_t		rate_selector;
64 	uint8_t		rate;
65 	uint8_t		packet_life_time_selector;
66 	uint8_t		packet_life_time;
67 	uint8_t		preference;
68 };
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* _SYS_IB_CLIENTS_OF_RDMA_IB_USER_SA_H */
75