3c5xx: use netdev_mc_* helpers
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
bf473a268a
commit
59ce25d9eb
@ -1536,7 +1536,7 @@ static void set_rx_mode(struct net_device *dev)
|
||||
pr_debug("%s: Setting promiscuous mode.\n",
|
||||
dev->name);
|
||||
new_mode = SetRxFilter | RxStation | RxMulticast | RxBroadcast | RxProm;
|
||||
} else if ((dev->mc_list) || (dev->flags & IFF_ALLMULTI)) {
|
||||
} else if (!netdev_mc_empty(dev) || dev->flags & IFF_ALLMULTI) {
|
||||
new_mode = SetRxFilter | RxStation | RxMulticast | RxBroadcast;
|
||||
} else
|
||||
new_mode = SetRxFilter | RxStation | RxBroadcast;
|
||||
|
Reference in New Issue
Block a user