1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef IB_USER_SA_H 8 #define IB_USER_SA_H 9 #include <linux/types.h> 10 enum { 11 IB_PATH_GMP = 1, 12 IB_PATH_PRIMARY = (1 << 1), 13 IB_PATH_ALTERNATE = (1 << 2), 14 IB_PATH_OUTBOUND = (1 << 3), 15 IB_PATH_INBOUND = (1 << 4), 16 IB_PATH_INBOUND_REVERSE = (1 << 5), 17 IB_PATH_BIDIRECTIONAL = IB_PATH_OUTBOUND | IB_PATH_INBOUND_REVERSE 18 }; 19 struct ib_path_rec_data { 20 __u32 flags; 21 __u32 reserved; 22 __u32 path_rec[16]; 23 }; 24 struct ib_user_path_rec { 25 __u8 dgid[16]; 26 __u8 sgid[16]; 27 __be16 dlid; 28 __be16 slid; 29 __u32 raw_traffic; 30 __be32 flow_label; 31 __u32 reversible; 32 __u32 mtu; 33 __be16 pkey; 34 __u8 hop_limit; 35 __u8 traffic_class; 36 __u8 numb_path; 37 __u8 sl; 38 __u8 mtu_selector; 39 __u8 rate_selector; 40 __u8 rate; 41 __u8 packet_life_time_selector; 42 __u8 packet_life_time; 43 __u8 preference; 44 }; 45 #endif 46