ofproto-dpif: Push statistics in rule_get_stats().
authorEthan Jackson <ethan@nicira.com>
Sat, 23 Mar 2013 22:11:21 +0000 (15:11 -0700)
committerEthan Jackson <ethan@nicira.com>
Sun, 24 Mar 2013 20:37:47 +0000 (13:37 -0700)
commit7cd875dbc82730c5c308ec05822a8b8d444c8a2f
tree70daf7e55b4953e394f55d68e75a7c85680595c9
parent8a02b5ee895add9b5ec4407ad5e525654a41a3dc
ofproto-dpif: Push statistics in rule_get_stats().

As time goes on, and flow tables become more complicated, the
tradeoff between keeping up to date statistics, and the CPU
resources needed to maintain them, will become more important.
Commit 5c0243a (ofproto-dpif: xlate actions once with subfacets.)
delayed the reporting of some statistics in an effort to achieve
higher flow setup performance.  Future commits will continue in the
same direction.

This patch helps to alleviate the issue, by pushing statistics
rule_get_stats(), when users actually want them.  Presumably, this
happens rarely, and thus will not have a negative impact on
ovs-vswitchd performance.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c