1 #ifndef _UAPI_RDMA_NETLINK_H
2 #define _UAPI_RDMA_NETLINK_H
4 #include <linux/types.h>
19 #define RDMA_NL_GET_CLIENT(type) ((type & (((1 << 6) - 1) << 10)) >> 10)
20 #define RDMA_NL_GET_OP(type) (type & ((1 << 10) - 1))
21 #define RDMA_NL_GET_TYPE(client, op) ((client << 10) + op)
24 RDMA_NL_RDMA_CM_ID_STATS
= 0,
25 RDMA_NL_RDMA_CM_NUM_OPS
29 RDMA_NL_RDMA_CM_ATTR_SRC_ADDR
= 1,
30 RDMA_NL_RDMA_CM_ATTR_DST_ADDR
,
31 RDMA_NL_RDMA_CM_NUM_ATTR
,
34 /* iwarp port mapper op-codes */
36 RDMA_NL_IWPM_REG_PID
= 0,
37 RDMA_NL_IWPM_ADD_MAPPING
,
38 RDMA_NL_IWPM_QUERY_MAPPING
,
39 RDMA_NL_IWPM_REMOVE_MAPPING
,
40 RDMA_NL_IWPM_REMOTE_INFO
,
41 RDMA_NL_IWPM_HANDLE_ERR
,
43 RDMA_NL_IWPM_MAPINFO_NUM
,
47 struct rdma_cm_id_stats
{
59 IWPM_NLA_REG_PID_UNSPEC
= 0,
62 IWPM_NLA_REG_IBDEV_NAME
,
63 IWPM_NLA_REG_ULIB_NAME
,
68 IWPM_NLA_RREG_PID_UNSPEC
= 0,
69 IWPM_NLA_RREG_PID_SEQ
,
70 IWPM_NLA_RREG_IBDEV_NAME
,
71 IWPM_NLA_RREG_ULIB_NAME
,
72 IWPM_NLA_RREG_ULIB_VER
,
73 IWPM_NLA_RREG_PID_ERR
,
79 IWPM_NLA_MANAGE_MAPPING_UNSPEC
= 0,
80 IWPM_NLA_MANAGE_MAPPING_SEQ
,
82 IWPM_NLA_MANAGE_MAPPED_LOC_ADDR
,
83 IWPM_NLA_RMANAGE_MAPPING_ERR
,
84 IWPM_NLA_RMANAGE_MAPPING_MAX
87 #define IWPM_NLA_MANAGE_MAPPING_MAX 3
88 #define IWPM_NLA_QUERY_MAPPING_MAX 4
89 #define IWPM_NLA_MAPINFO_SEND_MAX 3
92 IWPM_NLA_QUERY_MAPPING_UNSPEC
= 0,
93 IWPM_NLA_QUERY_MAPPING_SEQ
,
94 IWPM_NLA_QUERY_LOCAL_ADDR
,
95 IWPM_NLA_QUERY_REMOTE_ADDR
,
96 IWPM_NLA_RQUERY_MAPPED_LOC_ADDR
,
97 IWPM_NLA_RQUERY_MAPPED_REM_ADDR
,
98 IWPM_NLA_RQUERY_MAPPING_ERR
,
99 IWPM_NLA_RQUERY_MAPPING_MAX
103 IWPM_NLA_MAPINFO_REQ_UNSPEC
= 0,
104 IWPM_NLA_MAPINFO_ULIB_NAME
,
105 IWPM_NLA_MAPINFO_ULIB_VER
,
106 IWPM_NLA_MAPINFO_REQ_MAX
110 IWPM_NLA_MAPINFO_UNSPEC
= 0,
111 IWPM_NLA_MAPINFO_LOCAL_ADDR
,
112 IWPM_NLA_MAPINFO_MAPPED_ADDR
,
117 IWPM_NLA_MAPINFO_NUM_UNSPEC
= 0,
118 IWPM_NLA_MAPINFO_SEQ
,
119 IWPM_NLA_MAPINFO_SEND_NUM
,
120 IWPM_NLA_MAPINFO_ACK_NUM
,
121 IWPM_NLA_MAPINFO_NUM_MAX
125 IWPM_NLA_ERR_UNSPEC
= 0,
132 #endif /* _UAPI_RDMA_NETLINK_H */