Due to an error introduced in Commit
6f1435f "ofproto: Resubmit
statistics improperly account during failover." Flow statistics
could be double accounted when removed from the datapath.
Reported-by: KK Yap <yapkke@stanford.edu>
static void
facet_reset_dp_stats(struct facet *facet, struct dpif_flow_stats *stats)
{
- if (stats && facet->dp_packet_count < stats->n_packets
- && facet->dp_byte_count < stats->n_bytes) {
+ if (stats && facet->dp_packet_count <= stats->n_packets
+ && facet->dp_byte_count <= stats->n_bytes) {
stats->n_packets -= facet->dp_packet_count;
stats->n_bytes -= facet->dp_byte_count;
}