[ovs-dev] [PATCH] lacp: enable bond slave immediately after lacp attach
Aaron Conole
aconole at redhat.com
Mon Jul 17 21:05:05 UTC 2017
From: Huanle Han <hanxueluo at gmail.com>
There is a long interval (5~20 seconds) between lacp slave attach
and bond slave enable. During the interval, ovs drop all received
packets from that slave because bond_check_admissibility() check
fails. The root cause is that connectivity_seq is not changed
after lacp update and lacp status is not populated into port->may_enable
by port_run() immediately.
Signed-off-by: Huanle Han <hanxueluo at gmail.com>
Signed-off-by: Aaron Conole <aconole at redhat.com>
---
This is a repost from GitHub pull request #190.
https://github.com/openvswitch/ovs/pull/190
lib/lacp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/lacp.c b/lib/lacp.c
index 7716387..e6ad7b9 100644
--- a/lib/lacp.c
+++ b/lib/lacp.c
@@ -536,6 +536,7 @@ lacp_run(struct lacp *lacp, lacp_send_pdu *send_pdu) OVS_EXCLUDED(mutex)
if (lacp->update) {
lacp_update_attached(lacp);
+ seq_change(connectivity_seq_get());
}
HMAP_FOR_EACH (slave, node, &lacp->slaves) {
--
2.9.4
More information about the dev
mailing list