[ovs-dev] [PATCH v3 02/41] connmgr: Support OFPFMF14_ONLY_OWN

Simon Horman horms at verge.net.au
Mon Jun 16 02:29:22 UTC 2014


If the ONLY_OWN flag of a flow monitor is set then ofmonitor_report should
skip sending updates to other controllers.

This is in preparation for supporting OpenFlow1.4 flow monitors.

Signed-off-by: Simon Horman <horms at verge.net.au>

---
v3
* Rebase

v2
* No change
---
 ofproto/connmgr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c
index fd78d04..1fe6682 100644
--- a/ofproto/connmgr.c
+++ b/ofproto/connmgr.c
@@ -2120,6 +2120,7 @@ ofmonitor_report(struct connmgr *mgr, struct rule *rule,
                         && ofpacts_output_to_port(old_actions->ofpacts,
                                                   old_actions->ofpacts_len,
                                                   m->out_port)))
+                && (ofconn == abbrev_ofconn || !(m->flags & OFPFMF14_ONLY_OWN))
                 && cls_rule_is_loose_match(&rule->cr, &m->match)) {
                 flags |= m->flags;
             }
-- 
2.0.0.rc2




More information about the dev mailing list