X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=ofproto%2Fconnmgr.c;fp=ofproto%2Fconnmgr.c;h=4e1ba9df28d0598d078895f83c5b20634865b36f;hb=81a76618be9ea195a1e4a881ba9591728891d10b;hp=aaf9b3e2cc2c431cb9430e27cd2eb834d52b98d8;hpb=dbda2960f64238e80570aafeae7af5a752f54f59;p=openvswitch diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c index aaf9b3e2..4e1ba9df 100644 --- a/ofproto/connmgr.c +++ b/ofproto/connmgr.c @@ -1600,14 +1600,14 @@ connmgr_flushed(struct connmgr *mgr) if (!connmgr_has_controllers(mgr) && mgr->fail_mode == OFPROTO_FAIL_STANDALONE) { struct ofpbuf ofpacts; - struct cls_rule rule; + struct match match; ofpbuf_init(&ofpacts, OFPACT_OUTPUT_SIZE); ofpact_put_OUTPUT(&ofpacts)->port = OFPP_NORMAL; ofpact_pad(&ofpacts); - cls_rule_init_catchall(&rule, 0); - ofproto_add_flow(mgr->ofproto, &rule, ofpacts.data, ofpacts.size); + match_init_catchall(&match); + ofproto_add_flow(mgr->ofproto, &match, 0, ofpacts.data, ofpacts.size); ofpbuf_uninit(&ofpacts); } @@ -1812,7 +1812,7 @@ ofmonitor_report(struct connmgr *mgr, struct rule *rule, fu.hard_timeout = rule->hard_timeout; fu.table_id = rule->table_id; fu.cookie = rule->flow_cookie; - fu.match = &rule->cr; + fu.match = &rule->cr.match; if (flags & NXFMF_ACTIONS) { fu.ofpacts = rule->ofpacts; fu.ofpacts_len = rule->ofpacts_len;