In active-active bond, a non-active slave failure doesn't trigger the sending of learning packets. This patch fixes this issue.
Signed-off-by: minglumlu <ming...@citrix.com> --- ofproto/bond.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ofproto/bond.c b/ofproto/bond.c index 365a3ca..4f9f0ea 100644 --- a/ofproto/bond.c +++ b/ofproto/bond.c @@ -1679,6 +1679,8 @@ bond_slave_lookup(struct bond *bond, const void *slave_) static void bond_enable_slave(struct bond_slave *slave, bool enable) { + struct bond *bond = slave->bond; + slave->delay_expires = LLONG_MAX; if (enable != slave->enabled) { slave->bond->bond_revalidate = true; @@ -1688,6 +1690,7 @@ bond_enable_slave(struct bond_slave *slave, bool enable) if (enable) { ovs_list_insert(&slave->bond->enabled_slaves, &slave->list_node); } else { + bond->send_learning_packets = true; ovs_list_remove(&slave->list_node); } ovs_mutex_unlock(&slave->bond->mutex); -- 1.8.3.1 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev