2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 22:35:15 +00:00

lacp: report desync in ovs threads enabling slave

It is helpful in reporting main thread that is yet to enable bond slave,
but link state was brought up by lacp thread and capture this desync
between ovs threads for debugging.

Fixes: a8448cb170 ("lacp: Avoid packet drop on LACP bond after link up")
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukr@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Gowrishankar Muthukrishnan
2019-10-22 10:59:14 +05:30
committed by Ben Pfaff
parent 1051576cf2
commit 423416f587

View File

@@ -817,6 +817,10 @@ bond_check_admissibility(struct bond *bond, const void *slave_,
* When may_enable is TRUE, it means LACP is UP and waiting for the
* main thread to run LACP state machine and enable the slave. */
verdict = (slave->enabled || slave->may_enable) ? BV_ACCEPT : BV_DROP;
if (!slave->enabled && slave->may_enable) {
VLOG_DBG_RL(&rl, "bond %s: slave %s: main thread not yet enabled slave",
bond->name, bond->active_slave->name);
}
goto out;
case LACP_CONFIGURED:
if (!bond->lacp_fallback_ab) {