From 6f77f4ae984340daaf3d56103af4f42331fedb26 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 17 May 2011 15:49:26 -0700 Subject: [PATCH] ofproto-dpif: Revalidate flows in some previously missed cases. Reported-by: Justin Pettit Bug #5655. --- ofproto/ofproto-dpif.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.30.2