mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
eepro: fix netdev_mc_count conversion
Fix commit 4cd24eaf0
(net: use netdev_mc_count and netdev_mc_empty when
appropriate)
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f66d744d23
commit
06c92ee638
1 changed files with 1 additions and 1 deletions
|
@ -1288,7 +1288,7 @@ set_multicast_list(struct net_device *dev)
|
||||||
short ioaddr = dev->base_addr;
|
short ioaddr = dev->base_addr;
|
||||||
unsigned short mode;
|
unsigned short mode;
|
||||||
struct dev_mc_list *dmi=dev->mc_list;
|
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)
|
if (dev->flags&(IFF_ALLMULTI|IFF_PROMISC) || mc_count > 63)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue