summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_if.c
diff options
context:
space:
mode:
authorVlad Yasevich <vyasevic@redhat.com>2013-02-13 12:00:19 +0000
committerDavid S. Miller <davem@davemloft.net>2013-02-13 19:42:16 -0500
commitbc9a25d21ef8bad30e259af5114ccfb845c066db (patch)
tree70b44a0a84ecf60c227af9bb35c43c2f7c718d5e /net/bridge/br_if.c
parent1690be63a27b20ae65c792729a44f5970561ffa4 (diff)
downloadop-kernel-dev-bc9a25d21ef8bad30e259af5114ccfb845c066db.zip
op-kernel-dev-bc9a25d21ef8bad30e259af5114ccfb845c066db.tar.gz
bridge: Add vlan support for local fdb entries
When VLAN is added to the port, a local fdb entry for that port (the entry with the mac address of the port) is added for that VLAN. This way we can correctly determine if the traffic is for the bridge itself. If the address of the port changes, we try to change all the local fdb entries we have for that port. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r--net/bridge/br_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index 335c60c..ef1b914 100644
--- a/net/bridge/br_if.c
+++ b/net/bridge/br_if.c
@@ -397,7 +397,7 @@ int br_add_if(struct net_bridge *br, struct net_device *dev)
dev_set_mtu(br->dev, br_min_mtu(br));
- if (br_fdb_insert(br, p, dev->dev_addr))
+ if (br_fdb_insert(br, p, dev->dev_addr, 0))
netdev_err(dev, "failed insert local address bridge forwarding table\n");
kobject_uevent(&p->kobj, KOBJ_ADD);
OpenPOWER on IntegriCloud