diff options
author | Parav Pandit <parav@mellanox.com> | 2019-12-12 10:12:13 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-12-12 21:38:15 +0100 |
commit | 89f988d93c62384758b19323c886db917a80c371 (patch) | |
tree | 2028ccb6c9816c2a022eef75ab4ea65861bda64c /drivers/infiniband/hw/mlx5/main.c | |
parent | RDMA/counter: Prevent auto-binding a QP which are not tracked with res (diff) | |
download | linux-89f988d93c62384758b19323c886db917a80c371.tar.xz linux-89f988d93c62384758b19323c886db917a80c371.zip |
IB/mlx4: Follow mirror sequence of device add during device removal
Current code device add sequence is:
ib_register_device()
ib_mad_init()
init_sriov_init()
register_netdev_notifier()
Therefore, the remove sequence should be,
unregister_netdev_notifier()
close_sriov()
mad_cleanup()
ib_unregister_device()
However it is not above.
Hence, make do above remove sequence.
Fixes: fa417f7b520ee ("IB/mlx4: Add support for IBoE")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20191212091214.315005-3-leon@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
0 files changed, 0 insertions, 0 deletions