rdma_netlink.h revision 655a7c081f83b8351ed5f11a6c6accd9458293a8
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};
26#define RDMA_NL_GET_CLIENT(type) ((type & (((1 << 6) - 1) << 10)) >> 10)
27#define RDMA_NL_GET_OP(type) (type & ((1 << 10) - 1))
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define RDMA_NL_GET_TYPE(client, op) ((client << 10) + op)
30enum {
31 RDMA_NL_RDMA_CM_ID_STATS = 0,
32 RDMA_NL_RDMA_CM_NUM_OPS
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34};
35enum {
36 RDMA_NL_RDMA_CM_ATTR_SRC_ADDR = 1,
37 RDMA_NL_RDMA_CM_ATTR_DST_ADDR,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 RDMA_NL_RDMA_CM_NUM_ATTR,
40};
41struct rdma_cm_id_stats {
42 __u32 qp_num;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __u32 bound_dev_if;
45 __u32 port_space;
46 __s32 pid;
47 __u8 cm_state;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u8 node_type;
50 __u8 port_num;
51 __u8 qp_type;
52};
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#endif
55