macvlan: broadcast addr should be part of mc_filter
authorEric Dumazet <edumazet@google.com>
Thu, 7 Feb 2013 16:02:57 +0000 (16:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 22:55:48 +0000 (17:55 -0500)
commit cd431e738509e (macvlan: add multicast filter) forgot
the broadcast case.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Maciej Żenczykowski <maze@google.com>
SIgned-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c

index f494da82c33ff54d899c9e46e2c326203f053e5b..ce7c9268c740ea3648e27bebfcc3c2292043f98c 100644 (file)
@@ -426,6 +426,9 @@ static void macvlan_set_mac_lists(struct net_device *dev)
                netdev_for_each_mc_addr(ha, dev) {
                        __set_bit(mc_hash(ha->addr), filter);
                }
+
+               __set_bit(mc_hash(dev->broadcast), filter);
+
                bitmap_copy(vlan->mc_filter, filter, MACVLAN_MC_FILTER_SZ);
        }
        dev_uc_sync(vlan->lowerdev, dev);