Commit 007ae199 authored by Junxian Huang's avatar Junxian Huang Committed by ZhouJuan
Browse files

RDMA/hns: Fix the device loss after unbinding RoCE bond resource slave

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7WHE3



--------------------------------------------------------------------------

When the resource pf of RoCE bonding is unbinded, the main_hr_dev will
be unregistered and the bond resources will be cleaned up. Currently,
other slaves will not be re-initialized, and they are not availbale
until the whole RoCE ko is removed and inserted again.

To fix this problem, re-initialized all the slaves to hns_* device
except the resource slave itself before bond resources cleanup.

Fixes: e62a2027 ("RDMA/hns: support RoCE bonding")
Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
parent 79c470b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment