Commit f6916e6d authored by Junxian Huang's avatar Junxian Huang Committed by Juan Zhou
Browse files

RDMA/hns: Fix incorrect bond clear during slave increase event

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



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

During slave increase event (a new slave being added to a existing
bond), the existing slaves do not have a corresponding hr_dev handle
(except for the main_hr_dev one). These slaves are mistakenly treated
as non-hns devices and will lead to bond clear currently.

The correct way to confirm if a slave is a hns device is to compare
the netdev handle saved in the bond group.

Fixes: 6ba084e0 ("RDMA/hns: add constraints for bonding-unsupported situations")
Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: default avatarJuan Zhou <zhoujuan51@h-partners.com>
parent 2185e651
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment