Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 070e140c authored by Steve Wise's avatar Steve Wise Committed by Roland Dreier
Browse files

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: default avatarSteve Wise <swise@opengridcomputing.com>
Acked-by: default avatarSean Hefty <sean.hefty@intel.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 25cf84cf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;