History

UAPI: (Scripted) Disintegrate include/rdma

David Howells committed 13 years ago

Commit 7235aa71 parent f4a75d29 files · +44 −41Browse files

Unified · Split

9 files
  1. include/rdma/Kbuild +0 −6
  2. include/rdma/rdma_netlink.h +1 −35
  3. include/uapi/rdma/Kbuild +6 −0
  4. include/uapi/rdma/ib_user_cm.h +0 −0
  5. include/uapi/rdma/ib_user_mad.h +0 −0
  6. include/uapi/rdma/ib_user_sa.h +0 −0
  7. include/uapi/rdma/ib_user_verbs.h +0 −0
  8. include/uapi/rdma/rdma_netlink.h +37 −0
  9. include/uapi/rdma/rdma_user_cm.h +0 −0
include/rdma/Kbuild+0−6
@@ -1,6 +0,0 @@
1−header-y += ib_user_cm.h
2−header-y += ib_user_mad.h
3−header-y += ib_user_sa.h
4−header-y += ib_user_verbs.h
5−header-y += rdma_netlink.h
6−header-y += rdma_user_cm.h
include/rdma/rdma_netlink.h+1−35
@@ -1,41 +1,9 @@
11 #ifndef _RDMA_NETLINK_H
22 #define _RDMA_NETLINK_H
33
4−#include <linux/types.h>
5−
6−enum {
7− RDMA_NL_RDMA_CM = 1
8−};
9−
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)
13−
14−enum {
15− RDMA_NL_RDMA_CM_ID_STATS = 0,
16− RDMA_NL_RDMA_CM_NUM_OPS
17−};
18−
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,
23−};
24−
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;
34−};
35−
36−#ifdef __KERNEL__
374
385 #include <linux/netlink.h>
6+#include <uapi/rdma/rdma_netlink.h>
397
408 struct ibnl_client_cbs {
419 int (*dump)(struct sk_buff *skb, struct netlink_callback *nlcb);
@@ -88,6 +56,4 @@ void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq, · 46 unmodified lines
8856 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh,
8957 int len, void *data, int type);
9058
91−#endif /* __KERNEL__ */
92−
9359 #endif /* _RDMA_NETLINK_H */
include/uapi/rdma/Kbuild+6−0
@@ -1 +1,7 @@
11 # UAPI Header export list
2+header-y += ib_user_cm.h
3+header-y += ib_user_mad.h
4+header-y += ib_user_sa.h
5+header-y += ib_user_verbs.h
6+header-y += rdma_netlink.h
7+header-y += rdma_user_cm.h
include/uapi/rdma/ib_user_cm.hrenamed from include/rdma/ib_user_cm.h+0−0

File renamed without changes.

include/uapi/rdma/ib_user_mad.hrenamed from include/rdma/ib_user_mad.h+0−0

File renamed without changes.

include/uapi/rdma/ib_user_sa.hrenamed from include/rdma/ib_user_sa.h+0−0

File renamed without changes.

include/uapi/rdma/ib_user_verbs.hrenamed from include/rdma/ib_user_verbs.h+0−0

File renamed without changes.

include/uapi/rdma/rdma_netlink.h+37−0
@@ -0,0 +1,37 @@
1+#ifndef _UAPI_RDMA_NETLINK_H
2+#define _UAPI_RDMA_NETLINK_H
3+
4+#include <linux/types.h>
5+
6+enum {
7+ RDMA_NL_RDMA_CM = 1
8+};
9+
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)
13+
14+enum {
15+ RDMA_NL_RDMA_CM_ID_STATS = 0,
16+ RDMA_NL_RDMA_CM_NUM_OPS
17+};
18+
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,
23+};
24+
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;
34+};
35+
36+
37+#endif /* _UAPI_RDMA_NETLINK_H */
include/uapi/rdma/rdma_user_cm.hrenamed from include/rdma/rdma_user_cm.h+0−0

File renamed without changes.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t