mac-learning: Simplify memory management.
authorEthan Jackson <ethan@nicira.com>
Fri, 22 Jul 2011 19:00:46 +0000 (12:00 -0700)
committerEthan Jackson <ethan@nicira.com>
Sat, 23 Jul 2011 02:04:14 +0000 (19:04 -0700)
commit16a5d1e4727db5c27a03d57d477512e07abe4988
tree481609138500bee2eb205914eb2645388ecfa529
parent8e8d5966947dfc2153b60a6b7d2326db49838024
mac-learning: Simplify memory management.

The mac-learning implementation used a free list to keep track of
statically allocated table entries.  This made the code slightly
more difficult to understand than the more straightforward heap
based strategy implemented by this patch.
lib/mac-learning.c
lib/mac-learning.h