Includes code refactoring in the device init/deinit path and use the new driver unregistration APIs. Please apply to for-next. v1-> v2: - Remove the patches 1,2 and 6 from the v1 series. They are already merged. - Added ASSERT_RTNL instead of comment in Patch 2 - For Patch 3, explicitly queue the removal of the VF devices before calling ib_unregister_driver. This can avoid command timeouts seen, if the PFs gets removed before the VFs. Previous discussion - https://patchwork.kernel.org/patch/11260013/ Selvin Xavier (3): RDMA/bnxt_re: Add more flags in device init and uninit path RDMA/bnxt_re: Refactor device add/remove functionalities RDMA/bnxt_re: Use driver_unregister and unregistration API drivers/infiniband/hw/bnxt_re/bnxt_re.h | 16 +- drivers/infiniband/hw/bnxt_re/main.c | 249 ++++++++++++++++---------------- 2 files changed, 137 insertions(+), 128 deletions(-) -- 2.5.5