summaryrefslogtreecommitdiff
path: root/net/netlabel
diff options
context:
space:
mode:
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>2014-02-07 07:48:19 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-02-10 22:34:33 (GMT)
commit2836882fe07718fe3263745b1aa07284ec71871c (patch)
treec9fd17f8842c7093cd3c6cc2bfb66876abc1cdb0 /net/netlabel
parenta5642ab4744bc8c5a8c7ce7c6e30c01bd6bbc691 (diff)
downloadlinux-2836882fe07718fe3263745b1aa07284ec71871c.tar.xz
bridge: Fix the way to insert new local fdb entries in br_fdb_changeaddr
Since commit bc9a25d21ef8 ("bridge: Add vlan support for local fdb entries"), br_fdb_changeaddr() has inserted a new local fdb entry only if it can find old one. But if we have two ports where they have the same address or user has deleted a local entry, there will be no entry for one of the ports. Example of problematic case: ip link set eth0 address aa:bb:cc:dd:ee:ff ip link set eth1 address aa:bb:cc:dd:ee:ff brctl addif br0 eth0 brctl addif br0 eth1 # eth1 will not have a local entry due to dup. ip link set eth1 address 12:34:56:78:90:ab Then, the new entry for the address 12:34:56:78:90:ab will not be created, and the bridge device will not be able to communicate. Insert new entries regardless of whether we can find old entries or not. Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp> Acked-by: Vlad Yasevich <vyasevic@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlabel')
0 files changed, 0 insertions, 0 deletions