1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef IB_USER_SA_H
20 #define IB_USER_SA_H
21 #include <linux/types.h>
22 enum {
23   IB_PATH_GMP = 1,
24   IB_PATH_PRIMARY = (1 << 1),
25   IB_PATH_ALTERNATE = (1 << 2),
26   IB_PATH_OUTBOUND = (1 << 3),
27   IB_PATH_INBOUND = (1 << 4),
28   IB_PATH_INBOUND_REVERSE = (1 << 5),
29   IB_PATH_BIDIRECTIONAL = IB_PATH_OUTBOUND | IB_PATH_INBOUND_REVERSE
30 };
31 struct ib_path_rec_data {
32   __u32 flags;
33   __u32 reserved;
34   __u32 path_rec[16];
35 };
36 struct ib_user_path_rec {
37   __u8 dgid[16];
38   __u8 sgid[16];
39   __be16 dlid;
40   __be16 slid;
41   __u32 raw_traffic;
42   __be32 flow_label;
43   __u32 reversible;
44   __u32 mtu;
45   __be16 pkey;
46   __u8 hop_limit;
47   __u8 traffic_class;
48   __u8 numb_path;
49   __u8 sl;
50   __u8 mtu_selector;
51   __u8 rate_selector;
52   __u8 rate;
53   __u8 packet_life_time_selector;
54   __u8 packet_life_time;
55   __u8 preference;
56 };
57 #endif
58