[ovs-dev] [mlhash 2/2] mac-learning: Convert to hmap.

Ethan Jackson ethan at nicira.com
Fri Jul 22 18:33:09 UTC 2011


> We could get rid of the free list and the fixed array of mac_entries,
> replacing them by malloc() and free() and using hmap_count() to limit
> the number of entries.  (When I wrote this code I had a notion that we
> might want to avoid malloc() entirely in OVS, at least after startup.  I
> don't think that we're going to go that direction though.)

That's a good idea.  I'll write it up as a separate patch after I push this one.

Ethan



More information about the dev mailing list