summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2010-03-04 18:18:18 +0000
committerRoland Dreier <rolandd@cisco.com>2010-03-11 14:00:08 -0800
commit070e140c4c536df33a9870318791b2ca8f7dbfcf (patch)
treea28c4b0dd2d02068432cbf3fd1d4725c30065114 /drivers/infiniband
parent25cf84cf377c0aae5dbcf937ea89bc7893db5176 (diff)
downloadlinux-stable-070e140c4c536df33a9870318791b2ca8f7dbfcf.tar.gz
linux-stable-070e140c4c536df33a9870318791b2ca8f7dbfcf.tar.bz2
linux-stable-070e140c4c536df33a9870318791b2ca8f7dbfcf.zip
IB/mad: Ignore iWARP devices on device removal
When an iWARP device is unloaded, the ib_mad module logs errors. It should be ignoring iWARP devices on device removal just like it does on device add. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Acked-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/mad.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c
index 58463da814d1..e351b1548535 100644
--- 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;