Loading
RDMA/hns: Fix bonding failure due to wrong reset_state
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBD4ID ---------------------------------------------------------------------- When roce driver is removed during reset, the reset flow of roce may not be fully completed. This may lead to the reset_state of roce handler stored in nic driver remaining in a middle state, such as HNS_ROCE_STATE_RST_DOWN or HNS_ROCE_STATE_RST_UNINIT. The reset_state won't be cleared even if roce driver is re-inited. This cause that roce bonding which currently relies on reset_state fails in this case. Replace the reset detection for bonding with nic APIs (.ae_dev_resetting() and .get_hw_reset_stat()), just like the reset detection elsewhere in roce driver. Fixes: b927e306 ("RDMA/hns: Fix the concurrency error between bond and reset.") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com> Signed-off-by:
Xinghai Cen <cenxinghai@h-partners.com>