X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fbridge.c;h=9c614fb343d39e40b8a1ef96a8e27e6fbab5f64a;hb=5692e3847190f3aba8c6b2b08716ff55da71355e;hp=f5c5af37ede53992d0c38dc601b54b8157fe9fec;hpb=ebe482fd2119ef322751603f46e033bb374a8f11;p=openvswitch diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index f5c5af37..9c614fb3 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -3129,7 +3129,8 @@ lacp_process_packet(const struct ofpbuf *packet, struct iface *iface) return; } - iface->lacp_status = LACP_CURRENT; + iface->lacp_status |= LACP_CURRENT; + iface->lacp_status &= ~(LACP_EXPIRED | LACP_DEFAULTED); iface->lacp_rx = time_msec() + LACP_SLOW_TIME_RX; iface->lacp_actor.state = iface_get_lacp_state(iface); @@ -4702,7 +4703,8 @@ iface_set_lacp_defaulted(struct iface *iface) { memset(&iface->lacp_partner, 0, sizeof iface->lacp_partner); - iface->lacp_status = LACP_DEFAULTED; + iface->lacp_status |= LACP_DEFAULTED; + iface->lacp_status &= ~(LACP_CURRENT | LACP_EXPIRED); iface->lacp_tx = 0; iface->port->lacp_need_update = true; }