mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 18:24:14 +08:00
dm9601: fix IFF_ALLMULTI handling
Pass-all-multicast is controlled by bit 3 in RX control, not bit 2 (pass undersized frames). Reported-by: Joseph Chang <joseph_chang@davicom.com.tw> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8d34ce10c5
commit
bf0ea63807
@ -303,7 +303,7 @@ static void dm9601_set_multicast(struct net_device *net)
|
||||
rx_ctl |= 0x02;
|
||||
} else if (net->flags & IFF_ALLMULTI ||
|
||||
netdev_mc_count(net) > DM_MAX_MCAST) {
|
||||
rx_ctl |= 0x04;
|
||||
rx_ctl |= 0x08;
|
||||
} else if (!netdev_mc_empty(net)) {
|
||||
struct netdev_hw_addr *ha;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user