bridge: vlan: flush the dynamically learned entries on port vlan delete
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Tue, 23 Jun 2015 12:28:16 +0000 (05:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2015 12:40:55 +0000 (05:40 -0700)
commit1ea2d020ba477cb7011a7174e8501a9e04a325d4
tree2e32130a1c69c146ee95171dd601f2fcf891f3eb
parent9aa66382163e784acac0ce3580ed202d9a56d1ac
bridge: vlan: flush the dynamically learned entries on port vlan delete

Add a new argument to br_fdb_delete_by_port which allows to specify a
vid to match when flushing entries and use it in nbp_vlan_delete() to
flush the dynamically learned entries of the vlan/port pair when removing
a vlan from a port. Before this patch only the local mac was being
removed and the dynamically learned ones were left to expire.
Note that the do_all argument is still respected and if specified, the
vid will be ignored.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c
net/bridge/br_if.c
net/bridge/br_private.h
net/bridge/br_stp_if.c
net/bridge/br_sysfs_if.c
net/bridge/br_vlan.c