ofproto: per-table statistics
authorSimon Horman <horms@verge.net.au>
Thu, 22 May 2014 05:44:36 +0000 (14:44 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 22 May 2014 18:24:45 +0000 (11:24 -0700)
commitd611866c67ba06213040b27186e402717f77d72e
tree59df5d4dfedee400d95ea5362d965a95af2d2219
parent2113847254249710deff9455fc541330542305de
ofproto: per-table statistics

Add per-table counters. This resolves some short-comings
in the data provided in a table stats reply message.

* Lookups and matches are calculated based on table
  accesses rather than datapath flow hits and misses.

* Lookups and matches are credited to the table where they
  occurred rather than all being credited to table 0.

These problems were observed when running make check-ryu
and this patch allows many of its tester.py match checks
to pass.

Reviewed-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-xlate.c
ofproto/ofproto-dpif.c
ofproto/ofproto-dpif.h
ofproto/ofproto-provider.h
ofproto/ofproto.c
tests/ofproto-dpif.at