From: Ben Pfaff Date: Wed, 30 Mar 2011 20:01:36 +0000 (-0700) Subject: mac-learning: Fix mac_entry_is_grat_arp_locked(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33065c43aa9dfcd32d2ef223cf7a1030acc40490;p=openvswitch mac-learning: Fix mac_entry_is_grat_arp_locked(). The lock is asserted if its expiration time has not arrived yet, not the reverse. --- diff --git a/lib/mac-learning.h b/lib/mac-learning.h index 16c92dbe..51a7ac73 100644 --- a/lib/mac-learning.h +++ b/lib/mac-learning.h @@ -73,7 +73,7 @@ static inline void mac_entry_set_grat_arp_lock(struct mac_entry *mac) * has ever been asserted or if it has expired. */ static inline bool mac_entry_is_grat_arp_locked(const struct mac_entry *mac) { - return time_now() >= mac->grat_arp_lock; + return time_now() < mac->grat_arp_lock; } /* MAC learning table. */