| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | IB_PATH_GMP = 1, | 
|  | 24 | IB_PATH_PRIMARY = (1 << 1), | 
|  | 25 | IB_PATH_ALTERNATE = (1 << 2), | 
|  | 26 | IB_PATH_OUTBOUND = (1 << 3), | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | IB_PATH_INBOUND = (1 << 4), | 
|  | 28 | IB_PATH_INBOUND_REVERSE = (1 << 5), | 
|  | 29 | IB_PATH_BIDIRECTIONAL = IB_PATH_OUTBOUND | IB_PATH_INBOUND_REVERSE | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | struct ib_path_rec_data { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 32 | __u32 flags; | 
|  | 33 | __u32 reserved; | 
|  | 34 | __u32 path_rec[16]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | }; | 
|  | 36 | struct ib_user_path_rec { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 37 | __u8 dgid[16]; | 
|  | 38 | __u8 sgid[16]; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | __be16 dlid; | 
|  | 40 | __be16 slid; | 
|  | 41 | __u32 raw_traffic; | 
|  | 42 | __be32 flow_label; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | __u32 reversible; | 
|  | 44 | __u32 mtu; | 
|  | 45 | __be16 pkey; | 
|  | 46 | __u8 hop_limit; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | __u8 traffic_class; | 
|  | 48 | __u8 numb_path; | 
|  | 49 | __u8 sl; | 
|  | 50 | __u8 mtu_selector; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | __u8 rate_selector; | 
|  | 52 | __u8 rate; | 
|  | 53 | __u8 packet_life_time_selector; | 
|  | 54 | __u8 packet_life_time; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | __u8 preference; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 56 | }; | 
|  | 57 | #endif |