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)
committerJesse Gross <jesse@nicira.com>
Thu, 30 May 2013 01:33:15 +0000 (18:33 -0700)
commit7e741ffb84c305c4549cab6938b51e3e9ef26847
tree1bd8b17a0104266c37461ed4d34f583178a98b0e
parent64a1c30742a6a6645785f15ac35c83b5e6ea5ec3
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