WSL2-Linux-Kernel/drivers/infiniband/hw/mlx4
Parav Pandit 89f988d93c 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: fa417f7b52 ("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>
2019-12-12 15:38:15 -05:00
..
Kconfig
Makefile
ah.c
alias_GUID.c
cm.c
cq.c IB/umem: remove the dmasync argument to ib_umem_get 2019-11-17 10:37:00 -04:00
doorbell.c IB/umem: remove the dmasync argument to ib_umem_get 2019-11-17 10:37:00 -04:00
mad.c RDMA: Change MAD processing function to remove extra casting and parameter 2019-11-12 20:20:15 -04:00
main.c IB/mlx4: Follow mirror sequence of device add during device removal 2019-12-12 15:38:15 -05:00
mcg.c
mlx4_ib.h IB/mlx4: Update HW GID table while adding vlan GID 2019-11-19 15:58:55 -04:00
mr.c IB/umem: remove the dmasync argument to ib_umem_get 2019-11-17 10:37:00 -04:00
qp.c IB/umem: remove the dmasync argument to ib_umem_get 2019-11-17 10:37:00 -04:00
srq.c IB/umem: remove the dmasync argument to ib_umem_get 2019-11-17 10:37:00 -04:00
sysfs.c