secchan: Avoid sending NetFlow packets for empty flows.
authorBen Pfaff <blp@nicira.com>
Fri, 28 Aug 2009 21:59:42 +0000 (14:59 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 28 Aug 2009 21:59:42 +0000 (14:59 -0700)
commitb6f67919d48078d2171927b291d0a2ac629c4535
tree992472a90dc19c9f46a64fa97fc1cd1ac0182e61
parente0c27cffbc9b93f90c764e374f6944cb893295a3
secchan: Avoid sending NetFlow packets for empty flows.

There is no value in sending out NetFlow messages when the byte counter
(hence, packet counter) is 0.  This does not often happen, but it can in
corner cases where a flow gets installed but never sees any traffic before
it is uninstalled.

CC: Peter Balland <peter@nicira.com>
secchan/ofproto.c