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
IB/mad: Ignore iWARP devices on device removal
[safe/jmp/linux-2.6]
/
drivers
/
infiniband
/
core
/
mad.c
diff --git
a/drivers/infiniband/core/mad.c
b/drivers/infiniband/core/mad.c
index
58463da
..
e351b15
100644
(file)
--- a/
drivers/infiniband/core/mad.c
+++ b/
drivers/infiniband/core/mad.c
@@
-2953,6
+2953,9
@@
static void ib_mad_remove_device(struct ib_device *device)
{
int i, num_ports, cur_port;
+ if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB)
+ return;
+
if (device->node_type == RDMA_NODE_IB_SWITCH) {
num_ports = 1;
cur_port = 0;