diff options
author | Ben Pfaff <blp@nicira.com> | 2011-03-30 13:01:36 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-03-30 13:47:24 -0700 |
commit | 33065c43aa9dfcd32d2ef223cf7a1030acc40490 (patch) | |
tree | a204ce862f6379b990afa20ff64d2727245eee5d /lib/mac-learning.h | |
parent | 127c94840a7c6f9622f097cc15eaeb2bad379fc8 (diff) |
mac-learning: Fix mac_entry_is_grat_arp_locked().
The lock is asserted if its expiration time has not arrived yet, not the
reverse.
Diffstat (limited to 'lib/mac-learning.h')
-rw-r--r-- | lib/mac-learning.h | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |