Stop an ipoib interface before detaching it.

PR:		kern/181225
Submitted by:	Shahar Klein
Obtained from:	Mellanox
MFC after:	1 week
This commit is contained in:
John Baldwin 2013-08-20 18:08:06 +00:00
parent 3a8f0c444a
commit c8e1113b37

View File

@ -1073,6 +1073,8 @@ ipoib_remove_one(struct ib_device *device)
if (rdma_port_get_link_layer(device, priv->port) != IB_LINK_LAYER_INFINIBAND)
continue;
ipoib_stop(priv);
ib_unregister_event_handler(&priv->event_handler);
/* dev_change_flags(priv->dev, priv->dev->flags & ~IFF_UP); */