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:Junxian Huang <huangjunxian6@hisilicon.com>
Loading
Please sign in to comment