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

RDMA/hns: Get real-time port state of bonding slave

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



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

Currently, when a change-lowerstate event occurs, the bonding driver
gets the slave's port state from the event notifier and stores it in
the bond_grp struct. Whenever the state needs to be configured to HW
or is queried, the driver reads from bond_grp.

But actually, the state read in this way is not real-time data, as there
is always a delay before the newly changed state is stored. So it is
uneccessary and also inaccurate to store the state. Whenever the state
is needed, just read it from kernel in real time.

Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
parent ab97048c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment