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> 22 enum { 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_LS, 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 RDMA_NL_NUM_CLIENTS 30 }; 31 enum { 32 RDMA_NL_GROUP_CM = 1, 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 RDMA_NL_GROUP_IWPM, 35 RDMA_NL_GROUP_LS, 36 RDMA_NL_NUM_GROUPS 37 }; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define RDMA_NL_GET_CLIENT(type) ((type & (((1 << 6) - 1) << 10)) >> 10) 40 #define RDMA_NL_GET_OP(type) (type & ((1 << 10) - 1)) 41 #define RDMA_NL_GET_TYPE(client,op) ((client << 10) + op) 42 enum { 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 RDMA_NL_RDMA_CM_ID_STATS = 0, 45 RDMA_NL_RDMA_CM_NUM_OPS 46 }; 47 enum { 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 RDMA_NL_RDMA_CM_ATTR_SRC_ADDR = 1, 50 RDMA_NL_RDMA_CM_ATTR_DST_ADDR, 51 RDMA_NL_RDMA_CM_NUM_ATTR, 52 }; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 enum { 55 RDMA_NL_IWPM_REG_PID = 0, 56 RDMA_NL_IWPM_ADD_MAPPING, 57 RDMA_NL_IWPM_QUERY_MAPPING, 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 RDMA_NL_IWPM_REMOVE_MAPPING, 60 RDMA_NL_IWPM_REMOTE_INFO, 61 RDMA_NL_IWPM_HANDLE_ERR, 62 RDMA_NL_IWPM_MAPINFO, 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 RDMA_NL_IWPM_MAPINFO_NUM, 65 RDMA_NL_IWPM_NUM_OPS 66 }; 67 struct rdma_cm_id_stats { 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 __u32 qp_num; 70 __u32 bound_dev_if; 71 __u32 port_space; 72 __s32 pid; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 __u8 cm_state; 75 __u8 node_type; 76 __u8 port_num; 77 __u8 qp_type; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 }; 80 enum { 81 IWPM_NLA_REG_PID_UNSPEC = 0, 82 IWPM_NLA_REG_PID_SEQ, 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 IWPM_NLA_REG_IF_NAME, 85 IWPM_NLA_REG_IBDEV_NAME, 86 IWPM_NLA_REG_ULIB_NAME, 87 IWPM_NLA_REG_PID_MAX 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 }; 90 enum { 91 IWPM_NLA_RREG_PID_UNSPEC = 0, 92 IWPM_NLA_RREG_PID_SEQ, 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 IWPM_NLA_RREG_IBDEV_NAME, 95 IWPM_NLA_RREG_ULIB_NAME, 96 IWPM_NLA_RREG_ULIB_VER, 97 IWPM_NLA_RREG_PID_ERR, 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 IWPM_NLA_RREG_PID_MAX 100 }; 101 enum { 102 IWPM_NLA_MANAGE_MAPPING_UNSPEC = 0, 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 IWPM_NLA_MANAGE_MAPPING_SEQ, 105 IWPM_NLA_MANAGE_ADDR, 106 IWPM_NLA_MANAGE_MAPPED_LOC_ADDR, 107 IWPM_NLA_RMANAGE_MAPPING_ERR, 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 IWPM_NLA_RMANAGE_MAPPING_MAX 110 }; 111 #define IWPM_NLA_MANAGE_MAPPING_MAX 3 112 #define IWPM_NLA_QUERY_MAPPING_MAX 4 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 #define IWPM_NLA_MAPINFO_SEND_MAX 3 115 enum { 116 IWPM_NLA_QUERY_MAPPING_UNSPEC = 0, 117 IWPM_NLA_QUERY_MAPPING_SEQ, 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 IWPM_NLA_QUERY_LOCAL_ADDR, 120 IWPM_NLA_QUERY_REMOTE_ADDR, 121 IWPM_NLA_RQUERY_MAPPED_LOC_ADDR, 122 IWPM_NLA_RQUERY_MAPPED_REM_ADDR, 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 IWPM_NLA_RQUERY_MAPPING_ERR, 125 IWPM_NLA_RQUERY_MAPPING_MAX 126 }; 127 enum { 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 IWPM_NLA_MAPINFO_REQ_UNSPEC = 0, 130 IWPM_NLA_MAPINFO_ULIB_NAME, 131 IWPM_NLA_MAPINFO_ULIB_VER, 132 IWPM_NLA_MAPINFO_REQ_MAX 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 }; 135 enum { 136 IWPM_NLA_MAPINFO_UNSPEC = 0, 137 IWPM_NLA_MAPINFO_LOCAL_ADDR, 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 IWPM_NLA_MAPINFO_MAPPED_ADDR, 140 IWPM_NLA_MAPINFO_MAX 141 }; 142 enum { 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 IWPM_NLA_MAPINFO_NUM_UNSPEC = 0, 145 IWPM_NLA_MAPINFO_SEQ, 146 IWPM_NLA_MAPINFO_SEND_NUM, 147 IWPM_NLA_MAPINFO_ACK_NUM, 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 IWPM_NLA_MAPINFO_NUM_MAX 150 }; 151 enum { 152 IWPM_NLA_ERR_UNSPEC = 0, 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 IWPM_NLA_ERR_SEQ, 155 IWPM_NLA_ERR_CODE, 156 IWPM_NLA_ERR_MAX 157 }; 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 enum { 160 RDMA_NL_LS_OP_RESOLVE = 0, 161 RDMA_NL_LS_OP_SET_TIMEOUT, 162 RDMA_NL_LS_NUM_OPS 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 }; 165 #define RDMA_NL_LS_F_ERR 0x0100 166 enum { 167 LS_RESOLVE_PATH_USE_ALL = 0, 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 LS_RESOLVE_PATH_USE_UNIDIRECTIONAL, 170 LS_RESOLVE_PATH_USE_GMP, 171 LS_RESOLVE_PATH_USE_MAX 172 }; 173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 #define LS_DEVICE_NAME_MAX 64 175 struct rdma_ls_resolve_header { 176 __u8 device_name[LS_DEVICE_NAME_MAX]; 177 __u8 port_num; 178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 __u8 path_use; 180 }; 181 #define RDMA_NLA_F_MANDATORY (1 << 13) 182 #define RDMA_NLA_TYPE_MASK (~(NLA_F_NESTED | NLA_F_NET_BYTEORDER | RDMA_NLA_F_MANDATORY)) 183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 enum { 185 LS_NLA_TYPE_UNSPEC = 0, 186 LS_NLA_TYPE_PATH_RECORD, 187 LS_NLA_TYPE_TIMEOUT, 188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 LS_NLA_TYPE_SERVICE_ID, 190 LS_NLA_TYPE_DGID, 191 LS_NLA_TYPE_SGID, 192 LS_NLA_TYPE_TCLASS, 193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194 LS_NLA_TYPE_PKEY, 195 LS_NLA_TYPE_QOS_CLASS, 196 LS_NLA_TYPE_MAX 197 }; 198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199 struct rdma_nla_ls_gid { 200 __u8 gid[16]; 201 }; 202 #endif 203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204