bridge: Don't insert unnecessary local fdb entry on changing mac address
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Tue, 7 Jun 2016 10:14:17 +0000 (19:14 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jun 2016 17:18:17 +0000 (10:18 -0700)
commit38f56354f4e1cfbaa1f2f10e9acb30f105b70aed
tree404a6cf5d18c92e7fb950afc82e5025997c744cf
parentf946ceab11c4bede9b3d6c0d56f0964d65bfff65
bridge: Don't insert unnecessary local fdb entry on changing mac address

[ Upstream commit 0b148def403153a4d1565f1640356cb78ce5109f ]

The missing br_vlan_should_use() test caused creation of an unneeded
local fdb entry on changing mac address of a bridge device when there is
a vlan which is configured on a bridge port but not on the bridge
device.

Fixes: 2594e9064a57 ("bridge: vlan: add per-vlan struct and move to rhashtables")
Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bridge/br_fdb.c