Juniper/contrail-controller — pull request #416 by miriyalar (2014-03-10 23:35:14+00:00)
Title: Issue : Some flows show abnormally high stats (Bug 2527)

Fix :
When a flow is deleted and re-added (flow-entry data-structure reuse in
agent- This happens when agent has sent delete to Kernel but is waiting
for Del-Ack. In the meantime, flow add req has come from Kernel), the
agent flow entry has old stats values. When we export stats to collector,
we increment overflow bit, if agent flow stats is greater than Kernel
flow stats. The issue happening as part of this bug is flow was getting
deleted and re-added and overflow bit was getting set (which results in
high stats value).
The fix is to reset flow stats when the flow entry delete is
being sent to Kernel after exporting the stats to collector.

Thanks and regards,
Ashok