From: Daniel Baluta Date: Wed, 11 Sep 2013 21:56:53 +0000 (+0300) Subject: ofproto: update flow_stats flags on flow_stats_request X-Git-Tag: sliver-openvswitch-2.0.90-1~15^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3f517bcd0548f6729bbbc3fa8cb34eab8d18b8b8;hp=3f517bcd0548f6729bbbc3fa8cb34eab8d18b8b8;p=sliver-openvswitch.git 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 Signed-off-by: Ben Pfaff ---