diff options
Diffstat (limited to 'drivers/infiniband/core/verbs.c')
-rw-r--r-- | drivers/infiniband/core/verbs.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index 468999c38803..8b5dd3649bbf 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c | |||
@@ -79,6 +79,23 @@ enum ib_rate mult_to_ib_rate(int mult) | |||
79 | } | 79 | } |
80 | EXPORT_SYMBOL(mult_to_ib_rate); | 80 | EXPORT_SYMBOL(mult_to_ib_rate); |
81 | 81 | ||
82 | enum rdma_transport_type | ||
83 | rdma_node_get_transport(enum rdma_node_type node_type) | ||
84 | { | ||
85 | switch (node_type) { | ||
86 | case RDMA_NODE_IB_CA: | ||
87 | case RDMA_NODE_IB_SWITCH: | ||
88 | case RDMA_NODE_IB_ROUTER: | ||
89 | return RDMA_TRANSPORT_IB; | ||
90 | case RDMA_NODE_RNIC: | ||
91 | return RDMA_TRANSPORT_IWARP; | ||
92 | default: | ||
93 | BUG(); | ||
94 | return 0; | ||
95 | } | ||
96 | } | ||
97 | EXPORT_SYMBOL(rdma_node_get_transport); | ||
98 | |||
82 | /* Protection domains */ | 99 | /* Protection domains */ |
83 | 100 | ||
84 | struct ib_pd *ib_alloc_pd(struct ib_device *device) | 101 | struct ib_pd *ib_alloc_pd(struct ib_device *device) |
@@ -231,7 +248,7 @@ int ib_modify_srq(struct ib_srq *srq, | |||
231 | struct ib_srq_attr *srq_attr, | 248 | struct ib_srq_attr *srq_attr, |
232 | enum ib_srq_attr_mask srq_attr_mask) | 249 | enum ib_srq_attr_mask srq_attr_mask) |
233 | { | 250 | { |
234 | return srq->device->modify_srq(srq, srq_attr, srq_attr_mask); | 251 | return srq->device->modify_srq(srq, srq_attr, srq_attr_mask, NULL); |
235 | } | 252 | } |
236 | EXPORT_SYMBOL(ib_modify_srq); | 253 | EXPORT_SYMBOL(ib_modify_srq); |
237 | 254 | ||
@@ -547,7 +564,7 @@ int ib_modify_qp(struct ib_qp *qp, | |||
547 | struct ib_qp_attr *qp_attr, | 564 | struct ib_qp_attr *qp_attr, |
548 | int qp_attr_mask) | 565 | int qp_attr_mask) |
549 | { | 566 | { |
550 | return qp->device->modify_qp(qp, qp_attr, qp_attr_mask); | 567 | return qp->device->modify_qp(qp, qp_attr, qp_attr_mask, NULL); |
551 | } | 568 | } |
552 | EXPORT_SYMBOL(ib_modify_qp); | 569 | EXPORT_SYMBOL(ib_modify_qp); |
553 | 570 | ||