diff options
| author | Junxian Huang <huangjunxian6@hisilicon.com> | 2025-11-12 17:35:05 +0800 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2025-11-24 02:58:29 -0500 |
| commit | d31d410b38e61f89b978d4e1364040537339f559 (patch) | |
| tree | 959de2b98b42bcd7dfb9c2d5cc943a38073c14ab /tools/docs/parse-headers.py | |
| parent | b37ad2e290fc52e575572b04803a4f93f584df6c (diff) | |
RDMA/hns: Add bonding event handler
Register netdev notifier for two bonding events NETDEV_CHANGEUPPER
and NETDEV_CHANGELOWERSTATE.
In NETDEV_CHANGEUPPER event handler, check some rules about the HW
constraints when trying to link a new slave to the masteri, and
store some bonding information from the notifier. In unlinking case,
simply check the number of the rest slaves to decide whether the
bond is still supported.
In NETDEV_CHANGELOWERSTATE event handler, not much is done. It
simply sets the bond state when the bond is ready, which will be
used later.
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20251112093510.3696363-4-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions
