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:28:47 +0000 (10:28 -0700)
commit6d164b21fa3d72e03bede3bdfe3b673f8fe8bdd0
tree3a52ce1dbb5d9d2e8375990437fdb18749508b55
parent5f418ef78e587ff988f08f573ba3b0d909d5b6d4
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