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:46:44 +0000 (10:46 -0700)
commit8c504f843c32b2f55f7f65dbc6d3ad7f2d401d8d
tree70657a5e382ec81f324565c520ad75caf55406cc
parentede41adaec17ba1048ae3c6ffbcf1a879ab1920c
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