Filter collection of rules for flow monitor updates based on the monitor's out_group as well as its out_port.
Currently the flow monitor request decoder only allows the out_group to be OFPG_ANY which means that this logic change will have no runtime affect yet. A subsequent patch will update the flow monitor request decoder. This is in preparation for supporting OpenFlow1.4 flow monitors. Signed-off-by: Simon Horman <ho...@verge.net.au> --- v3 * Rebase v2 * No change --- ofproto/ofproto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 706784a..69d7129 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -4758,7 +4758,8 @@ ofproto_collect_ofmonitor_refresh_rule(const struct ofmonitor *m, return; } - if (!ofproto_rule_has_out_port(rule, m->out_port)) { + if (!ofproto_rule_has_out_port(rule, m->out_port) + || !ofproto_rule_has_out_group(rule, m->out_group)) { return; } -- 2.0.0.rc2 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev