ofproto: update flow_stats flags on flow_stats_request
authorDaniel Baluta <dbaluta@ixiacom.com>
Wed, 11 Sep 2013 21:56:53 +0000 (00:56 +0300)
committerBen Pfaff <blp@nicira.com>
Thu, 12 Sep 2013 06:01:13 +0000 (23:01 -0700)
commit3f517bcd0548f6729bbbc3fa8cb34eab8d18b8b8
tree617415176c293cc279c53fe77243284c858a3bed
parent2fafc091ce02d956382a7c2e582e8d7dbe573b49
ofproto: update flow_stats flags on flow_stats_request

This is a first step in implementing 'on demand flow counters'.

We save relevant flow_mod flags (OFPUTIL_FF_SEND_FLOW_REM,
OFPUTIL_FF_NO_PKT_COUNTS, OFPUTIL_FF_NO_BYT_COUNTS) into newly created rule
when a new flow is added, and echo them back in the flow stats request.

Notice that we remove send_flow_removed flag from struct rule/struct ofoperation
and we replace it with an enum tracking all ofputil_flow_mod_flags.

Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-util.h
ofproto/ofproto-provider.h
ofproto/ofproto.c