git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RDMA: iWARP Core Changes.
[safe/jmp/linux-2.6]
/
drivers
/
infiniband
/
core
/
user_mad.c
diff --git
a/drivers/infiniband/core/user_mad.c
b/drivers/infiniband/core/user_mad.c
index
8a455ae
..
807fbd6
100644
(file)
--- a/
drivers/infiniband/core/user_mad.c
+++ b/
drivers/infiniband/core/user_mad.c
@@
-1032,7
+1032,10
@@
static void ib_umad_add_one(struct ib_device *device)
struct ib_umad_device *umad_dev;
int s, e, i;
- if (device->node_type == IB_NODE_SWITCH)
+ if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB)
+ return;
+
+ if (device->node_type == RDMA_NODE_IB_SWITCH)
s = e = 0;
else {
s = 1;