From: Ben Pfaff Date: Tue, 27 Sep 2011 22:32:18 +0000 (-0700) Subject: ofproto-dpif: Revalidate tagged packets, too, in facet_lookup_valid(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e4b37710443ba0856daf5eefffcd582ff29f326;p=openvswitch ofproto-dpif: Revalidate tagged packets, too, in facet_lookup_valid(). I don't see a reason that we should only revalidate facets if we're revalidating every facet. --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 9c3d6705..0c50bfb1 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -2547,7 +2547,8 @@ facet_lookup_valid(struct ofproto_dpif *ofproto, const struct flow *flow) /* The facet we found might not be valid, since we could be in need of * revalidation. If it is not valid, don't return it. */ if (facet - && ofproto->need_revalidate + && (ofproto->need_revalidate + || tag_set_intersects(&ofproto->revalidate_set, facet->tags)) && !facet_revalidate(ofproto, facet)) { COVERAGE_INC(facet_invalidated); return NULL;