blob: c9993201e1406a93802fa5236deac2378c33110a [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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>
22enum {
Tao Baod7db5942015-01-28 10:07:51 -080023 IB_PATH_GMP = 1,
24 IB_PATH_PRIMARY = (1 << 1),
25 IB_PATH_ALTERNATE = (1 << 2),
26 IB_PATH_OUTBOUND = (1 << 3),
Tao Baod7db5942015-01-28 10:07:51 -080027 IB_PATH_INBOUND = (1 << 4),
28 IB_PATH_INBOUND_REVERSE = (1 << 5),
29 IB_PATH_BIDIRECTIONAL = IB_PATH_OUTBOUND | IB_PATH_INBOUND_REVERSE
Ben Cheng655a7c02013-10-16 16:09:24 -070030};
Ben Cheng655a7c02013-10-16 16:09:24 -070031struct ib_path_rec_data {
Tao Baod7db5942015-01-28 10:07:51 -080032 __u32 flags;
33 __u32 reserved;
34 __u32 path_rec[16];
Ben Cheng655a7c02013-10-16 16:09:24 -070035};
36struct ib_user_path_rec {
Tao Baod7db5942015-01-28 10:07:51 -080037 __u8 dgid[16];
38 __u8 sgid[16];
Tao Baod7db5942015-01-28 10:07:51 -080039 __be16 dlid;
40 __be16 slid;
41 __u32 raw_traffic;
42 __be32 flow_label;
Tao Baod7db5942015-01-28 10:07:51 -080043 __u32 reversible;
44 __u32 mtu;
45 __be16 pkey;
46 __u8 hop_limit;
Tao Baod7db5942015-01-28 10:07:51 -080047 __u8 traffic_class;
48 __u8 numb_path;
49 __u8 sl;
50 __u8 mtu_selector;
Tao Baod7db5942015-01-28 10:07:51 -080051 __u8 rate_selector;
52 __u8 rate;
53 __u8 packet_life_time_selector;
54 __u8 packet_life_time;
Tao Baod7db5942015-01-28 10:07:51 -080055 __u8 preference;
Ben Cheng655a7c02013-10-16 16:09:24 -070056};
57#endif