Implement MAC Flush for BD or Interface from the L2FIB 57/5857/2
authorJohn Lo <loj@cisco.com>
Sat, 25 Mar 2017 00:11:15 +0000 (20:11 -0400)
committerOle Trøan <otroan@employees.org>
Tue, 28 Mar 2017 22:36:13 +0000 (22:36 +0000)
commit58f061dca4cb049410a72bb21a9643f7acffa738
tree3871125ca8e4df0809f06e9fad66badce823d78f
parent45e526f36fb43f0b2c86d136ab563a3c5c412546
Implement MAC Flush for BD or Interface from the L2FIB

Allow non-static MACs in the L2FIB which is associated with an
interface or a bridge domain (BD) be flushed. MAC flush are
initiated automatically when an interface is removed from a BD
or when a BD is deleted. MAC flush can also be invoked manually
via the following CLI:
 l2fib mac-flush interface <if-name>
 l2fib mac-flush bridge-domain <bd-id>

Change-Id: Ie33243622834810a765f48ebcd22bdb8e8fc87a4
Signed-off-by: John Lo <loj@cisco.com>
src/vnet/buffer.h
src/vnet/l2/l2_bd.c
src/vnet/l2/l2_bd.h
src/vnet/l2/l2_fib.c
src/vnet/l2/l2_fib.h
src/vnet/l2/l2_input.c
src/vnet/l2/l2_input.h
src/vnet/l2/l2_learn.c
src/vnet/l2/l2_learn.h