diff options
Diffstat (limited to 'include/rdma/ib_verbs.h')
-rw-r--r-- | include/rdma/ib_verbs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 857b3b9cf120..55cd0a0bc977 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
@@ -47,10 +47,13 @@ | |||
47 | #include <linux/list.h> | 47 | #include <linux/list.h> |
48 | #include <linux/rwsem.h> | 48 | #include <linux/rwsem.h> |
49 | #include <linux/scatterlist.h> | 49 | #include <linux/scatterlist.h> |
50 | #include <linux/workqueue.h> | ||
50 | 51 | ||
51 | #include <asm/atomic.h> | 52 | #include <asm/atomic.h> |
52 | #include <asm/uaccess.h> | 53 | #include <asm/uaccess.h> |
53 | 54 | ||
55 | extern struct workqueue_struct *ib_wq; | ||
56 | |||
54 | union ib_gid { | 57 | union ib_gid { |
55 | u8 raw[16]; | 58 | u8 raw[16]; |
56 | struct { | 59 | struct { |
@@ -75,6 +78,12 @@ enum rdma_transport_type { | |||
75 | enum rdma_transport_type | 78 | enum rdma_transport_type |
76 | rdma_node_get_transport(enum rdma_node_type node_type) __attribute_const__; | 79 | rdma_node_get_transport(enum rdma_node_type node_type) __attribute_const__; |
77 | 80 | ||
81 | enum rdma_link_layer { | ||
82 | IB_LINK_LAYER_UNSPECIFIED, | ||
83 | IB_LINK_LAYER_INFINIBAND, | ||
84 | IB_LINK_LAYER_ETHERNET, | ||
85 | }; | ||
86 | |||
78 | enum ib_device_cap_flags { | 87 | enum ib_device_cap_flags { |
79 | IB_DEVICE_RESIZE_MAX_WR = 1, | 88 | IB_DEVICE_RESIZE_MAX_WR = 1, |
80 | IB_DEVICE_BAD_PKEY_CNTR = (1<<1), | 89 | IB_DEVICE_BAD_PKEY_CNTR = (1<<1), |
@@ -1010,6 +1019,8 @@ struct ib_device { | |||
1010 | int (*query_port)(struct ib_device *device, | 1019 | int (*query_port)(struct ib_device *device, |
1011 | u8 port_num, | 1020 | u8 port_num, |
1012 | struct ib_port_attr *port_attr); | 1021 | struct ib_port_attr *port_attr); |
1022 | enum rdma_link_layer (*get_link_layer)(struct ib_device *device, | ||
1023 | u8 port_num); | ||
1013 | int (*query_gid)(struct ib_device *device, | 1024 | int (*query_gid)(struct ib_device *device, |
1014 | u8 port_num, int index, | 1025 | u8 port_num, int index, |
1015 | union ib_gid *gid); | 1026 | union ib_gid *gid); |
@@ -1222,6 +1233,9 @@ int ib_query_device(struct ib_device *device, | |||
1222 | int ib_query_port(struct ib_device *device, | 1233 | int ib_query_port(struct ib_device *device, |
1223 | u8 port_num, struct ib_port_attr *port_attr); | 1234 | u8 port_num, struct ib_port_attr *port_attr); |
1224 | 1235 | ||
1236 | enum rdma_link_layer rdma_port_get_link_layer(struct ib_device *device, | ||
1237 | u8 port_num); | ||
1238 | |||
1225 | int ib_query_gid(struct ib_device *device, | 1239 | int ib_query_gid(struct ib_device *device, |
1226 | u8 port_num, int index, union ib_gid *gid); | 1240 | u8 port_num, int index, union ib_gid *gid); |
1227 | 1241 | ||