提交 d5270430 编写于 作者: E Eric Dumazet 提交者: David S. Miller

macvlan: broadcast addr should be part of mc_filter

commit cd431e73 (macvlan: add multicast filter) forgot
the broadcast case.
Signed-off-by: NEric Dumazet <edumazet@google.com>
Reported-by: NMaciej Żenczykowski <maze@google.com>
SIgned-off-by: NMaciej Żenczykowski <maze@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6a98dcf0
...@@ -426,6 +426,9 @@ static void macvlan_set_mac_lists(struct net_device *dev) ...@@ -426,6 +426,9 @@ static void macvlan_set_mac_lists(struct net_device *dev)
netdev_for_each_mc_addr(ha, dev) { netdev_for_each_mc_addr(ha, dev) {
__set_bit(mc_hash(ha->addr), filter); __set_bit(mc_hash(ha->addr), filter);
} }
__set_bit(mc_hash(dev->broadcast), filter);
bitmap_copy(vlan->mc_filter, filter, MACVLAN_MC_FILTER_SZ); bitmap_copy(vlan->mc_filter, filter, MACVLAN_MC_FILTER_SZ);
} }
dev_uc_sync(vlan->lowerdev, dev); dev_uc_sync(vlan->lowerdev, dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册