linux_dsm_epyc7002/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
..
ah.c RDMA: Introduce and use GID attr helper to read RoCE L2 fields 2019-05-03 11:10:02 -03:00
alias_GUID.c timekeeping: Use proper clock specifier names in functions 2019-06-22 12:11:27 +02:00
cm.c mlx4: Convert pv_id_table to XArray 2019-03-26 10:09:54 -03:00
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
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02: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
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mcg.c IB/mlx4: Remove unnecessary parentheses 2018-09-21 12:00:50 -04:00
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 mlx4: Use snprintf instead of complicated strcpy 2018-12-06 20:23:06 -07:00