Skip to content

Commit

Permalink
lacp: enable bond slave immediately after lacp attach
Browse files Browse the repository at this point in the history
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@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
hanxueluo authored and blp committed Aug 2, 2017
1 parent a858f99 commit a42abcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lacp.c
Expand Up @@ -535,6 +535,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) {
Expand Down

0 comments on commit a42abcb

Please sign in to comment.