diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2022-02-21 13:54:57 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-21 12:13:45 +0000 |
commit | 129e3c1bab24d27d0fa6e505a472345a92d7a2b0 (patch) | |
tree | 62198f35e14e68f84fa91de91c27d7a3dbe3d339 /include/net/bond_options.h | |
parent | 4e24be018eb9dbcefa4b01c07e298b147dc1a4d7 (diff) | |
download | lwn-129e3c1bab24d27d0fa6e505a472345a92d7a2b0.tar.gz lwn-129e3c1bab24d27d0fa6e505a472345a92d7a2b0.zip |
bonding: add new option ns_ip6_target
This patch add a new bonding option ns_ip6_target, which correspond
to the arp_ip_target. With this we set IPv6 targets and send IPv6 NS
request to determine the health of the link.
For other related options like the validation, we still use
arp_validate, and will change to ns_validate later.
Note: the sysfs configuration support was removed based on
https://lore.kernel.org/netdev/8863.1645071997@famine
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/bond_options.h')
-rw-r--r-- | include/net/bond_options.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/bond_options.h b/include/net/bond_options.h index 286b29c6c451..61b49063791c 100644 --- a/include/net/bond_options.h +++ b/include/net/bond_options.h @@ -66,6 +66,7 @@ enum { BOND_OPT_PEER_NOTIF_DELAY, BOND_OPT_LACP_ACTIVE, BOND_OPT_MISSED_MAX, + BOND_OPT_NS_TARGETS, BOND_OPT_LAST }; @@ -140,5 +141,8 @@ static inline void __bond_opt_init(struct bond_opt_value *optval, __bond_opt_init(optval, NULL, ULLONG_MAX, extra, extra_len) void bond_option_arp_ip_targets_clear(struct bonding *bond); +#if IS_ENABLED(CONFIG_IPV6) +void bond_option_ns_ip6_targets_clear(struct bonding *bond); +#endif #endif /* _NET_BOND_OPTIONS_H */ |