[ovs-dev] [PATCH] mac-learning: Fix mac_entry_is_grat_arp_locked().

Ethan Jackson ethan at nicira.com
Wed Mar 30 21:11:29 UTC 2011


> I think it's a good idea if it makes code more obviously correct and
> doesn't add significant overhead.  What do you have in mind?

I haven't thought through it entirely but basically a new timer_t type
which would be typdefed as a long long int.  A function to set the
timer for some number of seconds in the future, and a function to
check if the timer has gone off.  Perhaps a wait for timer function
too.  It would be pretty trivial, but we've reimplemented this logic
all over the code and are bound to make mistakes like this as it's not
super clean.

Ethan



More information about the dev mailing list