ofproto-dpif: Consolidate facet stat logic.
authorEthan Jackson <ethan@nicira.com>
Wed, 29 May 2013 19:38:48 +0000 (12:38 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 30 May 2013 18:34:27 +0000 (11:34 -0700)
commit9dfb1f783862b90122507392b324549515a43455
treea022f32fe531092027bd0e54a512096b0fc76c33
parent0305ce1f71fa6e9ecfee79f4ec41876f0c0104e2
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