macvlan: broadcast addr should be part of mc_filter
authorEric Dumazet <[email protected]>
Thu, 7 Feb 2013 16:02:57 +0000 (16:02 +0000)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Reported-by: Maciej Żenczykowski <[email protected]>
SIgned-off-by: Maciej Żenczykowski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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);