On Fri, Feb 27, 2026 at 02:31:05AM +0000, Hangbin Liu wrote:
> > I haven't tested this in some time, though, so my question is
> > whether this change affects the failover time when an active aggregator
> > is de-selected in favor of another aggregator. By "failover time," I
> > mean how long transmission and/or reception are interrupted when
> > changing from one aggregator to another. I presume that if aggregator
> > failover ater this change requires LACPDU exchanges, etc, it will take
> > longer to fail over.
>
> I haven't tested it yet. I think the failover time should be in 1 second.
> Let me do some testing today.
I did a test and the failover takes about 200ms with the environment in patch
03.
Here is the full log
Code: the timer count starts after the old active port link down.
```
ip -n "${c_ns}" link set eth1 down
date +'%F %T.%3N'
ip -n ${c_ns} -d link show eth2
while ! ip -n ${c_ns} -d link show eth2 | grep -q distributing; do
sleep 0.01
done
date +'%F %T.%3N'
ip -n ${c_ns} -d link show eth2
```
Log:
2026-02-26 22:59:54.334 <-- The time when eth1 link down
5: eth2@if3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc noqueue
master bond0 state UP mode DEFAULT group default qlen 1000
link/ether 12:40:54:81:d3:80 brd ff:ff:ff:ff:ff:ff link-netns b_ns-PKIXVg
promiscuity 0 allmulti 0 minmtu 68 maxmtu 65535
veth
bond_slave state BACKUP mii_status UP link_failure_count 0 perm_hwaddr
26:10:46:58:22:e4 queue_id 0 prio 0 ad_aggregator_id 2 ad_actor_oper_port_state
7 ad_actor_oper_port_state_str <active,short_timeout,aggregating>
ad_partner_oper_port_state 15 ad_partner_oper_port_state_str
<active,short_timeout,aggregating,in_sync> actor_port_prio 1000 addrgenmode
eui64 numtxqueues 4 numrxqueues 4 gso_max_size 65536 gso_max_segs 65535
tso_max_size 524280 tso_max_segs 65535 gro_max_size 65536 gso_ipv4_max_size
65536 gro_ipv4_max_size 65536
2026-02-26 22:59:54.529 <--- The time when eth2 enter collecting,distributing
state
5: eth2@if3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc noqueue
master bond0 state UP mode DEFAULT group default qlen 1000
link/ether 12:40:54:81:d3:80 brd ff:ff:ff:ff:ff:ff link-netns b_ns-PKIXVg
promiscuity 0 allmulti 0 minmtu 68 maxmtu 65535
veth
bond_slave state ACTIVE mii_status UP link_failure_count 0 perm_hwaddr
26:10:46:58:22:e4 queue_id 0 prio 0 ad_aggregator_id 2 ad_actor_oper_port_state
63 ad_actor_oper_port_state_str
<active,short_timeout,aggregating,in_sync,collecting,distributing>
ad_partner_oper_port_state 63 ad_partner_oper_port_state_str
<active,short_timeout,aggregating,in_sync,collecting,distributing>
actor_port_prio 1000 addrgenmode eui64 numtxqueues 4 numrxqueues 4 gso_max_size
65536 gso_max_segs 65535 tso_max_size 524280 tso_max_segs 65535 gro_max_size
65536 gso_ipv4_max_size 65536 gro_ipv4_max_size 65536
Thanks
Hangbin