https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... File src/nix-vector-routing/model/ipv4-nix-vector-routing.cc (right): https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:91: Ipv4NixVectorRouting::FlushGlobalNixRoutingCache () const (void) https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:110: Ipv4NixVectorRouting::FlushNixCache () const (void) https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:117: Ipv4NixVectorRouting::FlushIpv4RouteCache () const (void) https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:173: CheckCacheStateAndFlush(); …Flush (); _ [space] And below https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:889: Ipv4NixVectorRouting::CheckCacheStateAndFlush(void) const …Flush (void) _ [space] https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... File src/nix-vector-routing/model/ipv4-nix-vector-routing.h (right): https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:76: * Implementation note, const is used here due to need to \internal \c const ... https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:164: * Checks if routing caches flushes if required. What? Perhaps: "Flushes routing cache if required." https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:166: void CheckCacheStateAndFlush() const; void CheckCacheStateAndFlush (void) const; _(void) [space and void] How about returning bool to indicate a flush occurred? https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:170: * Used for lazy cleanup of caches when large topology changes. "… of caches when there are many topology changes between route requests." https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:174: /* cache stores nix-vectors based on destination ip */ /* Cache … https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:177: /* cache stores Ipv4Routes based on destination ip */ /* Cache …
looks fine to me; no further comments beyond Peter's
Fixed Peter's issues and have pushed updated patch. Steve https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... File src/nix-vector-routing/model/ipv4-nix-vector-routing.cc (right): https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:91: Ipv4NixVectorRouting::FlushGlobalNixRoutingCache () const On 2014/12/19 18:49:47, Peter Barnes wrote: > (void) Done. https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:110: Ipv4NixVectorRouting::FlushNixCache () const On 2014/12/19 18:49:47, Peter Barnes wrote: > (void) Done. https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:117: Ipv4NixVectorRouting::FlushIpv4RouteCache () const On 2014/12/19 18:49:47, Peter Barnes wrote: > (void) Done. https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:173: CheckCacheStateAndFlush(); On 2014/12/19 18:49:47, Peter Barnes wrote: > …Flush (); > _ [space] > > And below Done. https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:889: Ipv4NixVectorRouting::CheckCacheStateAndFlush(void) const On 2014/12/19 18:49:47, Peter Barnes wrote: > …Flush (void) > _ [space] Done. https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... File src/nix-vector-routing/model/ipv4-nix-vector-routing.h (right): https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:76: * Implementation note, const is used here due to need to On 2014/12/19 18:49:47, Peter Barnes wrote: > \internal > > \c const ... Done. https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:164: * Checks if routing caches flushes if required. On 2014/12/19 18:49:47, Peter Barnes wrote: > What? Perhaps: > > "Flushes routing cache if required." Done. https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:166: void CheckCacheStateAndFlush() const; On 2014/12/19 18:49:47, Peter Barnes wrote: > void CheckCacheStateAndFlush (void) const; > _(void) [space and void] > How about returning bool to indicate a flush occurred? Done. https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:170: * Used for lazy cleanup of caches when large topology changes. On 2014/12/19 18:49:47, Peter Barnes wrote: > "… of caches when there are many topology changes between route requests." Done. https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:174: /* cache stores nix-vectors based on destination ip */ On 2014/12/19 18:49:47, Peter Barnes wrote: > /* Cache … Done. https://codereview.appspot.com/183600043/diff/1/src/nix-vector-routing/model/... src/nix-vector-routing/model/ipv4-nix-vector-routing.h:177: /* cache stores Ipv4Routes based on destination ip */ On 2014/12/19 18:49:47, Peter Barnes wrote: > /* Cache … Done.