diff options
Diffstat (limited to 'drivers/net/tehuti.c')
-rw-r--r-- | drivers/net/tehuti.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index 068a47174fca..a38aede5c8d6 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
@@ -808,7 +808,7 @@ static void bdx_setmulti(struct net_device *ndev) | |||
808 | WRITE_REG(priv, regRX_MCST_HASH0 + i * 4, ~0); | 808 | WRITE_REG(priv, regRX_MCST_HASH0 + i * 4, ~0); |
809 | } else if (!netdev_mc_empty(ndev)) { | 809 | } else if (!netdev_mc_empty(ndev)) { |
810 | u8 hash; | 810 | u8 hash; |
811 | struct dev_mc_list *mclist; | 811 | struct netdev_hw_addr *ha; |
812 | u32 reg, val; | 812 | u32 reg, val; |
813 | 813 | ||
814 | /* set IMF to deny all multicast frames */ | 814 | /* set IMF to deny all multicast frames */ |
@@ -825,10 +825,10 @@ static void bdx_setmulti(struct net_device *ndev) | |||
825 | * into RX_MAC_MCST regs. we skip this phase now and accept ALL | 825 | * into RX_MAC_MCST regs. we skip this phase now and accept ALL |
826 | * multicast frames throu IMF */ | 826 | * multicast frames throu IMF */ |
827 | /* accept the rest of addresses throu IMF */ | 827 | /* accept the rest of addresses throu IMF */ |
828 | netdev_for_each_mc_addr(mclist, ndev) { | 828 | netdev_for_each_mc_addr(ha, ndev) { |
829 | hash = 0; | 829 | hash = 0; |
830 | for (i = 0; i < ETH_ALEN; i++) | 830 | for (i = 0; i < ETH_ALEN; i++) |
831 | hash ^= mclist->dmi_addr[i]; | 831 | hash ^= ha->addr[i]; |
832 | reg = regRX_MCST_HASH0 + ((hash >> 5) << 2); | 832 | reg = regRX_MCST_HASH0 + ((hash >> 5) << 2); |
833 | val = READ_REG(priv, reg); | 833 | val = READ_REG(priv, reg); |
834 | val |= (1 << (hash % 32)); | 834 | val |= (1 << (hash % 32)); |