ofproto-dpif: Don't count misses in OpenFlow table stats.
authorJesse Gross <jesse@nicira.com>
Sat, 25 May 2013 00:01:34 +0000 (17:01 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 5 Jun 2013 17:37:16 +0000 (10:37 -0700)
commitffcafe9bf5ffdd7a8885222d3009703eb4946a4c
treecf5f11e5aa908d6d79b0fff954db6e7aa317723d
parentd1c38945c61c4262247a32ab86929eeb95645799
ofproto-dpif: Don't count misses in OpenFlow table stats.

Originally no rule existed for packets that did not match an
OpenFlow flow and therefore every packet with a rule could be
counted as a hit. However, newer versions of OVS have hidden
miss rules so this is no longer true. To return the correct
table stats, this subtracts packets that hit the miss rule
from the total and removes the separate counter.

Reported-by: love you <thunder.love07@gmail.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
ofproto/ofproto-dpif.c