mac-learning: Only revalidate relevant flows upon flush.
authorEthan Jackson <ethan@nicira.com>
Wed, 25 Jan 2012 19:44:30 +0000 (11:44 -0800)
committerEthan Jackson <ethan@nicira.com>
Wed, 25 Jan 2012 21:11:07 +0000 (13:11 -0800)
commitd0040604727e1582abbc28fa62903a822453c99f
tree7f8574ca15fc3b9b9f0b54520930b7a72f033f02
parent9dc114749e795044c027a2706132b591847e49de
mac-learning: Only revalidate relevant flows upon flush.

Most callers of mac_learning_flush() need to revalidate all flows
anyway, but this update forces new callers of mac_learning_flush()
to think about whether or not they need to explicitly handle
revalidation.  Also, it's theoretically more efficient when there
are lots of flows but the learning table is empty, (e.g. bridges
that don't use the NORMAL action).

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/mac-learning.c
lib/mac-learning.h
ofproto/ofproto-dpif.c