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>
Sat, 23 Mar 2013 22:23:25 +0000 (15:23 -0700)
commitbf1e8ff9835871eb4927d5a0dbc7af19901d37ce
tree732f7eeffdb489d1d1b53be0c7c70506cb5bff15
parentf4d90e0d040d8ee0bcb1ce44f680fa921f09f2b6
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