ofproto-dpif: Honor statistics in packet_out().
authorEthan Jackson <ethan@nicira.com>
Wed, 11 Jan 2012 03:01:04 +0000 (19:01 -0800)
committerEthan Jackson <ethan@nicira.com>
Wed, 11 Jan 2012 19:31:45 +0000 (11:31 -0800)
commit2284188b69fc8d935ae1ecf9d1b939e3efbbe10b
tree80502712e339c220f750e6c8682f1c92e6fdf9ac
parent524e1b1c3dbf4f88c00c4b6c2544a334d48dab0a
ofproto-dpif: Honor statistics in packet_out().

A "packet out" ordinarily isn't accounted to any OpenFlow rule,
because its actions come directly from the controller instead of
from an OpenFlow rule.  However, any "resubmit" actions or output
to OFPP_TABLE within the set of actions do bring in actions from a
rule, and the "packet out" should be accounted to the rule in that
case.  This commit implements that behavior.

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