projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
127c948
)
mac-learning: Fix mac_entry_is_grat_arp_locked().
author
Ben Pfaff
<blp@nicira.com>
Wed, 30 Mar 2011 20:01:36 +0000
(13:01 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 30 Mar 2011 20:47:24 +0000
(13:47 -0700)
The lock is asserted if its expiration time has not arrived yet, not the
reverse.
lib/mac-learning.h
patch
|
blob
|
history
diff --git
a/lib/mac-learning.h
b/lib/mac-learning.h
index 16c92dbe5b11ae010aebccf03e2ac880d99c66db..51a7ac7380afb4488ca57e7df54b02d06fca6ea8 100644
(file)
--- 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. */