提交 06c92ee6 编写于 作者: A Alexander Beregalov 提交者: David S. Miller

eepro: fix netdev_mc_count conversion

Fix commit 4cd24eaf (net: use netdev_mc_count and netdev_mc_empty when
appropriate)
Signed-off-by: NAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f66d744d
......@@ -1288,7 +1288,7 @@ set_multicast_list(struct net_device *dev)
short ioaddr = dev->base_addr;
unsigned short mode;
struct dev_mc_list *dmi=dev->mc_list;
int mc_count = mc_count;
int mc_count = netdev_mc_count(dev);
if (dev->flags&(IFF_ALLMULTI|IFF_PROMISC) || mc_count > 63)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册