Merge pull request #31498 from ssahani/bond
netdev: bond - add support for peer_notif_delay
This commit is contained in:
@@ -88,6 +88,12 @@ static int netdev_bond_fill_message_create(NetDev *netdev, Link *link, sd_netlin
|
||||
return r;
|
||||
}
|
||||
|
||||
if (b->peer_notify_delay != 0) {
|
||||
r = sd_netlink_message_append_u32(m, IFLA_BOND_PEER_NOTIF_DELAY, b->peer_notify_delay / USEC_PER_MSEC);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
if (b->downdelay != 0) {
|
||||
r = sd_netlink_message_append_u32(m, IFLA_BOND_DOWNDELAY, b->downdelay / USEC_PER_MSEC);
|
||||
if (r < 0)
|
||||
|
||||
@@ -41,6 +41,7 @@ typedef struct Bond {
|
||||
usec_t downdelay;
|
||||
usec_t arp_interval;
|
||||
usec_t lp_interval;
|
||||
usec_t peer_notify_delay;
|
||||
|
||||
OrderedSet *arp_ip_targets;
|
||||
} Bond;
|
||||
|
||||
@@ -216,6 +216,7 @@ Bond.UpDelaySec, config_parse_sec,
|
||||
Bond.DownDelaySec, config_parse_sec, 0, offsetof(Bond, downdelay)
|
||||
Bond.ARPIntervalSec, config_parse_sec, 0, offsetof(Bond, arp_interval)
|
||||
Bond.LearnPacketIntervalSec, config_parse_sec, 0, offsetof(Bond, lp_interval)
|
||||
Bond.PeerNotifyDelaySec, config_parse_sec, 0, offsetof(Bond, peer_notify_delay)
|
||||
Bond.AdActorSystemPriority, config_parse_ad_actor_sys_prio, 0, offsetof(Bond, ad_actor_sys_prio)
|
||||
Bond.AdUserPortKey, config_parse_ad_user_port_key, 0, offsetof(Bond, ad_user_port_key)
|
||||
Bond.AdActorSystem, config_parse_ad_actor_system, 0, offsetof(Bond, ad_actor_system)
|
||||
|
||||
Reference in New Issue
Block a user