ofproto: Guarantee uninstalled facets have no dp_packet_count.
authorEthan Jackson <ethan@nicira.com>
Thu, 24 Feb 2011 21:53:02 +0000 (13:53 -0800)
committerEthan Jackson <ethan@nicira.com>
Thu, 24 Feb 2011 22:33:16 +0000 (14:33 -0800)
commita2c6a63cc06f4edbce32b6ae5f500b89b3dcd1a6
tree6a503a8ec38cf21d95614e5050efa051c5f95d5b
parent5e1b32141734bf944c63de8ab15538135bf3f8fd
ofproto: Guarantee uninstalled facets have no dp_packet_count.

facet_push_stats() implicitly assumes that uninstalled facets have
no dp_[packet|byte]_count.  This commit guarantees and enforces
this invariant.

Bug #4732.
ofproto/ofproto.c