ofproto-dpif: Consolidate facet stat logic.
authorEthan Jackson <ethan@nicira.com>
Wed, 29 May 2013 19:38:48 +0000 (12:38 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 11 Jun 2013 21:51:58 +0000 (14:51 -0700)
commit0e05b480be23c283d9e4e091344b39f051814b1d
tree0c8f150042e154237b4e4c20d102207debdad9b0
parent22783aa1893ba99fa7fdc8936bd461f19d33447a
ofproto-dpif: Consolidate facet stat logic.

The logic for updating statistics at the facet level had been
spread through ofproto-dpif in a rather confusing manner.  This
patch consolidates as much of this logic as is reasonable into
facet_push_stats().

On a side note, I'd expect this patch to have a marginal positive
performance impact when using learning (though I haven't bothered
to measure it).  It combines facet_learn() and facet_push_stats()
into one step allowing us to avoid a redundant xlate_actions().

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