diff options
author | Roopa Prabhu <roopa@cumulusnetworks.com> | 2015-10-08 10:38:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-12 05:11:58 -0700 |
commit | 3741873b4f73b572b8f8835e6bd114e08316a160 (patch) | |
tree | 55f5789f513a92a421d417cb469ab4a8922f6342 /net/bridge/br_vlan.c | |
parent | 6bcfd7f8c28887a4298bc4386b02cb90c9fa0c13 (diff) | |
download | linux-stable-3741873b4f73b572b8f8835e6bd114e08316a160.tar.gz linux-stable-3741873b4f73b572b8f8835e6bd114e08316a160.tar.bz2 linux-stable-3741873b4f73b572b8f8835e6bd114e08316a160.zip |
bridge: allow adding of fdb entries pointing to the bridge device
This patch enables adding of fdb entries pointing to the bridge device.
This can be used to propagate mac address of vlan interfaces
configured on top of the vlan filtering bridge.
Before:
$bridge fdb add 44:38:39:00:27:9f dev bridge
RTNETLINK answers: Invalid argument
After:
$bridge fdb add 44:38:39:00:27:9f dev bridge
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_vlan.c')
-rw-r--r-- | net/bridge/br_vlan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_vlan.c b/net/bridge/br_vlan.c index eae07ee9bfe0..7a95e31f782f 100644 --- a/net/bridge/br_vlan.c +++ b/net/bridge/br_vlan.c @@ -564,6 +564,7 @@ int br_vlan_delete(struct net_bridge *br, u16 vid) return -ENOENT; br_fdb_find_delete_local(br, NULL, br->dev->dev_addr, vid); + br_fdb_delete_by_port(br, NULL, vid, 0); return __vlan_del(v); } |