diff options
Diffstat (limited to 'drivers/net/jme.c')
-rw-r--r-- | drivers/net/jme.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/jme.c b/drivers/net/jme.c index c0b59a555384..10e816d2caff 100644 --- a/drivers/net/jme.c +++ b/drivers/net/jme.c | |||
@@ -2009,12 +2009,12 @@ jme_set_multi(struct net_device *netdev) | |||
2009 | } else if (netdev->flags & IFF_ALLMULTI) { | 2009 | } else if (netdev->flags & IFF_ALLMULTI) { |
2010 | jme->reg_rxmcs |= RXMCS_ALLMULFRAME; | 2010 | jme->reg_rxmcs |= RXMCS_ALLMULFRAME; |
2011 | } else if (netdev->flags & IFF_MULTICAST) { | 2011 | } else if (netdev->flags & IFF_MULTICAST) { |
2012 | struct dev_mc_list *mclist; | 2012 | struct netdev_hw_addr *ha; |
2013 | int bit_nr; | 2013 | int bit_nr; |
2014 | 2014 | ||
2015 | jme->reg_rxmcs |= RXMCS_MULFRAME | RXMCS_MULFILTERED; | 2015 | jme->reg_rxmcs |= RXMCS_MULFRAME | RXMCS_MULFILTERED; |
2016 | netdev_for_each_mc_addr(mclist, netdev) { | 2016 | netdev_for_each_mc_addr(ha, netdev) { |
2017 | bit_nr = ether_crc(ETH_ALEN, mclist->dmi_addr) & 0x3F; | 2017 | bit_nr = ether_crc(ETH_ALEN, ha->addr) & 0x3F; |
2018 | mc_hash[bit_nr >> 5] |= 1 << (bit_nr & 0x1F); | 2018 | mc_hash[bit_nr >> 5] |= 1 << (bit_nr & 0x1F); |
2019 | } | 2019 | } |
2020 | 2020 | ||