From: Ben Pfaff Date: Tue, 17 May 2011 22:49:26 +0000 (-0700) Subject: ofproto-dpif: Revalidate flows in some previously missed cases. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f77f4ae984340daaf3d56103af4f42331fedb26;p=openvswitch ofproto-dpif: Revalidate flows in some previously missed cases. Reported-by: Justin Pettit Bug #5655. --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 0e4f8cb5..26a0fbf6 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -830,6 +830,8 @@ bundle_del_port(struct ofport_dpif *port) { struct ofbundle *bundle = port->bundle; + bundle->ofproto->need_revalidate = true; + list_remove(&port->bundle_node); port->bundle = NULL; @@ -861,6 +863,7 @@ bundle_add_port(struct ofbundle *bundle, uint32_t ofp_port, } if (port->bundle != bundle) { + bundle->ofproto->need_revalidate = true; if (port->bundle) { bundle_del_port(port); } @@ -1029,6 +1032,7 @@ bundle_set(struct ofproto *ofproto_, void *aux, } } else { bundle->bond = bond_create(s->bond); + ofproto->need_revalidate = true; } LIST_FOR_EACH (port, bundle_node, &bundle->ports) {