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:
parent
bf473a268a
commit
59ce25d9eb
6 changed files with 13 additions and 19 deletions
|
@ -2970,7 +2970,7 @@ static void set_rx_mode(struct net_device *dev)
|
|||
if (vortex_debug > 3)
|
||||
pr_notice("%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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue