X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Ffail-open.c;h=2a8fb955f53ef16a1d9a372594f37361dd18d6d1;hb=8731b2b688b34e02c9357ce6755c5acadfe613e9;hp=a86ee391b12dbfc8d56c8cdb55b1fb27965de50e;hpb=fa37b408eac875cbc0d7adbbb3f7a004371172da;p=openvswitch diff --git a/ofproto/fail-open.c b/ofproto/fail-open.c index a86ee391..2a8fb955 100644 --- a/ofproto/fail-open.c +++ b/ofproto/fail-open.c @@ -30,10 +30,10 @@ #include "status.h" #include "timeval.h" #include "vconn.h" - -#define THIS_MODULE VLM_fail_open #include "vlog.h" +VLOG_DEFINE_THIS_MODULE(fail_open) + /* * Fail-open mode. * @@ -257,7 +257,7 @@ static void fail_open_recover(struct fail_open *fo) { if (fail_open_is_active(fo)) { - flow_t flow; + struct flow flow; VLOG_WARN("No longer in fail-open mode"); fo->last_disconn_secs = 0; @@ -283,7 +283,7 @@ fail_open_flushed(struct fail_open *fo) bool open = disconn_secs >= trigger_duration(fo); if (open) { union ofp_action action; - flow_t flow; + struct flow flow; /* Set up a flow that matches every packet and directs them to * OFPP_NORMAL. */