diff options
Diffstat (limited to 'drivers/net/tehuti.c')
-rw-r--r-- | drivers/net/tehuti.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index b907bee31fd5..ab9b0280317e 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
@@ -808,7 +808,7 @@ static void bdx_setmulti(struct net_device *ndev) | |||
808 | /* set IMF to accept all multicast frmaes */ | 808 | /* set IMF to accept all multicast frmaes */ |
809 | for (i = 0; i < MAC_MCST_HASH_NUM; i++) | 809 | for (i = 0; i < MAC_MCST_HASH_NUM; i++) |
810 | WRITE_REG(priv, regRX_MCST_HASH0 + i * 4, ~0); | 810 | WRITE_REG(priv, regRX_MCST_HASH0 + i * 4, ~0); |
811 | } else if (ndev->mc_count) { | 811 | } else if (!netdev_mc_empty(ndev)) { |
812 | u8 hash; | 812 | u8 hash; |
813 | struct dev_mc_list *mclist; | 813 | struct dev_mc_list *mclist; |
814 | u32 reg, val; | 814 | u32 reg, val; |
@@ -840,7 +840,7 @@ static void bdx_setmulti(struct net_device *ndev) | |||
840 | } | 840 | } |
841 | 841 | ||
842 | } else { | 842 | } else { |
843 | DBG("only own mac %d\n", ndev->mc_count); | 843 | DBG("only own mac %d\n", netdev_mc_count(ndev)); |
844 | rxf_val |= GMAC_RX_FILTER_AB; | 844 | rxf_val |= GMAC_RX_FILTER_AB; |
845 | } | 845 | } |
846 | WRITE_REG(priv, regGMAC_RXF_A, rxf_val); | 846 | WRITE_REG(priv, regGMAC_RXF_A, rxf_val); |