提交 8a8c3f5b 编写于 作者: R Rob Herring 提交者: David S. Miller

net: calxedaxgmac: add uc and mc filter addresses in promiscuous mode

Even in promiscuous mode, we need to add filter addresses for correct
operation. This fixes silent failures when using a bridge and adding
addresses using the "bridge fdb add" command.
Signed-off-by: NRob Herring <rob.herring@calxeda.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8c1c58ec
...@@ -1291,10 +1291,8 @@ static void xgmac_set_rx_mode(struct net_device *dev) ...@@ -1291,10 +1291,8 @@ static void xgmac_set_rx_mode(struct net_device *dev)
netdev_dbg(priv->dev, "# mcasts %d, # unicast %d\n", netdev_dbg(priv->dev, "# mcasts %d, # unicast %d\n",
netdev_mc_count(dev), netdev_uc_count(dev)); netdev_mc_count(dev), netdev_uc_count(dev));
if (dev->flags & IFF_PROMISC) { if (dev->flags & IFF_PROMISC)
writel(XGMAC_FRAME_FILTER_PR, ioaddr + XGMAC_FRAME_FILTER); value |= XGMAC_FRAME_FILTER_PR;
return;
}
memset(hash_filter, 0, sizeof(hash_filter)); memset(hash_filter, 0, sizeof(hash_filter));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册