Linux 3.12.5
[linux/fpc-iii.git] / include / uapi / rdma / rdma_netlink.h
blob8297285b62886a5177a1d90108a4fbd1b2ebc630
1 #ifndef _UAPI_RDMA_NETLINK_H
2 #define _UAPI_RDMA_NETLINK_H
4 #include <linux/types.h>
6 enum {
7 RDMA_NL_RDMA_CM = 1
8 };
10 #define RDMA_NL_GET_CLIENT(type) ((type & (((1 << 6) - 1) << 10)) >> 10)
11 #define RDMA_NL_GET_OP(type) (type & ((1 << 10) - 1))
12 #define RDMA_NL_GET_TYPE(client, op) ((client << 10) + op)
14 enum {
15 RDMA_NL_RDMA_CM_ID_STATS = 0,
16 RDMA_NL_RDMA_CM_NUM_OPS
19 enum {
20 RDMA_NL_RDMA_CM_ATTR_SRC_ADDR = 1,
21 RDMA_NL_RDMA_CM_ATTR_DST_ADDR,
22 RDMA_NL_RDMA_CM_NUM_ATTR,
25 struct rdma_cm_id_stats {
26 __u32 qp_num;
27 __u32 bound_dev_if;
28 __u32 port_space;
29 __s32 pid;
30 __u8 cm_state;
31 __u8 node_type;
32 __u8 port_num;
33 __u8 qp_type;
37 #endif /* _UAPI_RDMA_NETLINK_H */