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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 IB_PATH_GMP = 1, 25 IB_PATH_PRIMARY = (1 << 1), 26 IB_PATH_ALTERNATE = (1 << 2), 27 IB_PATH_OUTBOUND = (1 << 3), 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 IB_PATH_INBOUND = (1 << 4), 30 IB_PATH_INBOUND_REVERSE = (1 << 5), 31 IB_PATH_BIDIRECTIONAL = IB_PATH_OUTBOUND | IB_PATH_INBOUND_REVERSE 32 }; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 struct ib_path_rec_data { 35 __u32 flags; 36 __u32 reserved; 37 __u32 path_rec[16]; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 }; 40 struct ib_user_path_rec { 41 __u8 dgid[16]; 42 __u8 sgid[16]; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 __be16 dlid; 45 __be16 slid; 46 __u32 raw_traffic; 47 __be32 flow_label; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __u32 reversible; 50 __u32 mtu; 51 __be16 pkey; 52 __u8 hop_limit; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 __u8 traffic_class; 55 __u8 numb_path; 56 __u8 sl; 57 __u8 mtu_selector; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 __u8 rate_selector; 60 __u8 rate; 61 __u8 packet_life_time_selector; 62 __u8 packet_life_time; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 __u8 preference; 65 }; 66 #endif 67