X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Ffail-open.c;h=04be5ce6a357caf31f7ef88176b60fe7c2ae9b80;hb=2ed7d6e227c009f0f6bdabbb85262d8aac896e00;hp=a79c5b226ac6fed8370599c77707c5087b6a220d;hpb=76ce9432393df462e2030036021ea60096a734d4;p=openvswitch diff --git a/ofproto/fail-open.c b/ofproto/fail-open.c index a79c5b22..04be5ce6 100644 --- a/ofproto/fail-open.c +++ b/ofproto/fail-open.c @@ -21,6 +21,7 @@ #include "flow.h" #include "mac-learning.h" #include "odp-util.h" +#include "ofp-util.h" #include "ofpbuf.h" #include "ofproto.h" #include "pktbuf.h" @@ -29,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. * @@ -271,7 +272,7 @@ void fail_open_wait(struct fail_open *fo) { if (fo->next_bogus_packet_in != LLONG_MAX) { - poll_timer_wait(fo->next_bogus_packet_in - time_msec()); + poll_timer_wait_until(fo->next_bogus_packet_in); } }