diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2013-02-13 13:00:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-14 01:42:15 +0100 |
commit | 2ba071ecb6d41ce172f9ccb3996f28cb337b3576 (patch) | |
tree | ab957f8a004394d4d68c32dfbf823cc1a428ab3e /net/bridge/br_device.c | |
parent | bridge: Add the ability to configure pvid (diff) | |
download | linux-2ba071ecb6d41ce172f9ccb3996f28cb337b3576.tar.xz linux-2ba071ecb6d41ce172f9ccb3996f28cb337b3576.zip |
bridge: Add vlan to unicast fdb entries
This patch adds vlan to unicast fdb entries that are created for
learned addresses (not the manually configured ones). It adds
vlan id into the hash mix and uses vlan as an addditional parameter
for an entry match.
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_device.c')
-rw-r--r-- | net/bridge/br_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c index 9509139da49c..d5f1d3fd4b28 100644 --- a/net/bridge/br_device.c +++ b/net/bridge/br_device.c @@ -71,7 +71,7 @@ netdev_tx_t br_dev_xmit(struct sk_buff *skb, struct net_device *dev) br_multicast_deliver(mdst, skb); else br_flood_deliver(br, skb); - } else if ((dst = __br_fdb_get(br, dest)) != NULL) + } else if ((dst = __br_fdb_get(br, dest, vid)) != NULL) br_deliver(dst->dst, skb); else br_flood_deliver(br, skb); |