X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fbridge.c;h=9ddafe1ef634b6938ea294824d4ac04be42445c5;hb=7f7ae89d2477e14b11c1355668366030fc590c64;hp=5085703a362a2f2f8eb9a9b493459742ab994297;hpb=94db54073ea372406d4d82a009301984b097bc6b;p=openvswitch diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 5085703a..9ddafe1e 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -32,6 +32,7 @@ #include #include #include "bitmap.h" +#include "classifier.h" #include "coverage.h" #include "dirs.h" #include "dpif.h" @@ -1792,14 +1793,14 @@ bridge_reconfigure_remotes(struct bridge *br, if (!n_controllers && ofproto_get_fail_mode(br->ofproto) == OFPROTO_FAIL_STANDALONE) { union ofp_action action; - struct flow flow; + struct cls_rule rule; memset(&action, 0, sizeof action); action.type = htons(OFPAT_OUTPUT); action.output.len = htons(sizeof action); action.output.port = htons(OFPP_NORMAL); - memset(&flow, 0, sizeof flow); - ofproto_add_flow(br->ofproto, &flow, OVSFW_ALL, 0, &action, 1, 0); + cls_rule_init_catchall(&rule, 0); + ofproto_add_flow(br->ofproto, &rule, &action, 1); } }