diff options
author | jhb <jhb@FreeBSD.org> | 2013-08-20 18:08:06 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2013-08-20 18:08:06 +0000 |
commit | dc097a7ee8a081711c798197258bf4c79a9287fb (patch) | |
tree | 3f389d92cef0804274c09af7ae2358b9d9322c5d /sys/ofed | |
parent | 44d729ee1540766b552c77242363963649b0af9f (diff) | |
download | FreeBSD-src-dc097a7ee8a081711c798197258bf4c79a9287fb.zip FreeBSD-src-dc097a7ee8a081711c798197258bf4c79a9287fb.tar.gz |
Stop an ipoib interface before detaching it.
PR: kern/181225
Submitted by: Shahar Klein
Obtained from: Mellanox
MFC after: 1 week
Diffstat (limited to 'sys/ofed')
-rw-r--r-- | sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c b/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c index 944e0ac..9081e13 100644 --- a/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -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); */ |