ofproto: Clear packet and byte counters on flow additions.
authorEthan Jackson <ethan@nicira.com>
Tue, 16 Aug 2011 20:50:00 +0000 (13:50 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 16 Aug 2011 21:14:55 +0000 (14:14 -0700)
commitbbb5d219de99cc99f0b88d25313a03ecaef13f9c
treed809a9aeb22d2e13ed0808f0ad4556d2f3291a09
parent0fa0fcdc5a3ab75b5e3846229ccb4aef96866ce7
ofproto: Clear packet and byte counters on flow additions.

When a flow is added to the flow table, its packet and byte
counters should be reset.  This patch efficiently approximates this
behavior.  It also does some minor code refactoring.

Bug #3183.
ofproto/ofproto-dpif.c