rdma_netlink.h revision ba8d4f460b51161eb82cf1006cb34a3cc1389f47
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 _UAPI_RDMA_NETLINK_H
20#define _UAPI_RDMA_NETLINK_H
21#include <linux/types.h>
22enum {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 RDMA_NL_RDMA_CM = 1,
25 RDMA_NL_NES,
26 RDMA_NL_C4IW,
27 RDMA_NL_NUM_CLIENTS
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29};
30enum {
31 RDMA_NL_GROUP_CM = 1,
32 RDMA_NL_GROUP_IWPM,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 RDMA_NL_NUM_GROUPS
35};
36#define RDMA_NL_GET_CLIENT(type) ((type & (((1 << 6) - 1) << 10)) >> 10)
37#define RDMA_NL_GET_OP(type) (type & ((1 << 10) - 1))
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define RDMA_NL_GET_TYPE(client, op) ((client << 10) + op)
40enum {
41 RDMA_NL_RDMA_CM_ID_STATS = 0,
42 RDMA_NL_RDMA_CM_NUM_OPS
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44};
45enum {
46 RDMA_NL_RDMA_CM_ATTR_SRC_ADDR = 1,
47 RDMA_NL_RDMA_CM_ATTR_DST_ADDR,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 RDMA_NL_RDMA_CM_NUM_ATTR,
50};
51enum {
52 RDMA_NL_IWPM_REG_PID = 0,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 RDMA_NL_IWPM_ADD_MAPPING,
55 RDMA_NL_IWPM_QUERY_MAPPING,
56 RDMA_NL_IWPM_REMOVE_MAPPING,
57 RDMA_NL_IWPM_HANDLE_ERR,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 RDMA_NL_IWPM_MAPINFO,
60 RDMA_NL_IWPM_MAPINFO_NUM,
61 RDMA_NL_IWPM_NUM_OPS
62};
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64struct rdma_cm_id_stats {
65 __u32 qp_num;
66 __u32 bound_dev_if;
67 __u32 port_space;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 __s32 pid;
70 __u8 cm_state;
71 __u8 node_type;
72 __u8 port_num;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 __u8 qp_type;
75};
76enum {
77 IWPM_NLA_REG_PID_UNSPEC = 0,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 IWPM_NLA_REG_PID_SEQ,
80 IWPM_NLA_REG_IF_NAME,
81 IWPM_NLA_REG_IBDEV_NAME,
82 IWPM_NLA_REG_ULIB_NAME,
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 IWPM_NLA_REG_PID_MAX
85};
86enum {
87 IWPM_NLA_RREG_PID_UNSPEC = 0,
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 IWPM_NLA_RREG_PID_SEQ,
90 IWPM_NLA_RREG_IBDEV_NAME,
91 IWPM_NLA_RREG_ULIB_NAME,
92 IWPM_NLA_RREG_ULIB_VER,
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 IWPM_NLA_RREG_PID_ERR,
95 IWPM_NLA_RREG_PID_MAX
96};
97enum {
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 IWPM_NLA_MANAGE_MAPPING_UNSPEC = 0,
100 IWPM_NLA_MANAGE_MAPPING_SEQ,
101 IWPM_NLA_MANAGE_ADDR,
102 IWPM_NLA_MANAGE_MAPPED_LOC_ADDR,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 IWPM_NLA_RMANAGE_MAPPING_ERR,
105 IWPM_NLA_RMANAGE_MAPPING_MAX
106};
107#define IWPM_NLA_MANAGE_MAPPING_MAX 3
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define IWPM_NLA_QUERY_MAPPING_MAX 4
110#define IWPM_NLA_MAPINFO_SEND_MAX 3
111enum {
112 IWPM_NLA_QUERY_MAPPING_UNSPEC = 0,
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 IWPM_NLA_QUERY_MAPPING_SEQ,
115 IWPM_NLA_QUERY_LOCAL_ADDR,
116 IWPM_NLA_QUERY_REMOTE_ADDR,
117 IWPM_NLA_RQUERY_MAPPED_LOC_ADDR,
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 IWPM_NLA_RQUERY_MAPPED_REM_ADDR,
120 IWPM_NLA_RQUERY_MAPPING_ERR,
121 IWPM_NLA_RQUERY_MAPPING_MAX
122};
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124enum {
125 IWPM_NLA_MAPINFO_REQ_UNSPEC = 0,
126 IWPM_NLA_MAPINFO_ULIB_NAME,
127 IWPM_NLA_MAPINFO_ULIB_VER,
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 IWPM_NLA_MAPINFO_REQ_MAX
130};
131enum {
132 IWPM_NLA_MAPINFO_UNSPEC = 0,
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 IWPM_NLA_MAPINFO_LOCAL_ADDR,
135 IWPM_NLA_MAPINFO_MAPPED_ADDR,
136 IWPM_NLA_MAPINFO_MAX
137};
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139enum {
140 IWPM_NLA_MAPINFO_NUM_UNSPEC = 0,
141 IWPM_NLA_MAPINFO_SEQ,
142 IWPM_NLA_MAPINFO_SEND_NUM,
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 IWPM_NLA_MAPINFO_ACK_NUM,
145 IWPM_NLA_MAPINFO_NUM_MAX
146};
147enum {
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 IWPM_NLA_ERR_UNSPEC = 0,
150 IWPM_NLA_ERR_SEQ,
151 IWPM_NLA_ERR_CODE,
152 IWPM_NLA_ERR_MAX
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154};
155#endif
156