RDMA/hns: Fix the driver uninit order during bond setting
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6Z4E9 --------------------------------------------------------------- In the slave list of bond_grp, the first slave is always the main_hr_dev, and the main_hr_dev is responsible for bonding netdev event handling. If the main_hr_dev is uninit too early, some CHANGELOWERSTATE events may be missed before the main_hr_dev is re-register, which may cause the HW is configured with an outdated slave state. This patch reverses the order of uniniting slave hr_dev to ensure main_hr_dev is the last one being uninited. Fixes: e62a2027 ("RDMA/hns: support RoCE bonding") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com>
Loading
Please sign in to comment