aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tehuti.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-02-07 23:30:35 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-12 14:38:58 -0500
commit4cd24eaf0c6ee7f0242e34ee77ec899f255e66b5 (patch)
tree99f57f6374a58022e1e5ed1cbc12699288c7eae1 /drivers/net/tehuti.c
parent8e5574211d96c0552f84c757718475fdb4021be7 (diff)
net: use netdev_mc_count and netdev_mc_empty when appropriate
This patch replaces dev->mc_count in all drivers (hopefully I didn't miss anything). Used spatch and did small tweaks and conding style changes when it was suitable. Jirka Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tehuti.c')
-rw-r--r--drivers/net/tehuti.c4
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);