aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_main.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-01-25 16:36:10 -0500
committerDavid S. Miller <davem@davemloft.net>2010-01-25 16:36:10 -0500
commit32e7bfc41110bc8f29ec0f293c3bcee6645fef34 (patch)
treeb770a040aee7a6a196514cbf5328debb33321d4d /drivers/net/e1000/e1000_main.c
parent9010bc3364db56dd88a1851e0797e597e322ce08 (diff)
net: use helpers to access uc list V2
This patch introduces three macros to work with uc list from net drivers. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r--drivers/net/e1000/e1000_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 87f575ca427d..2ce88c5f75c5 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -2139,7 +2139,7 @@ static void e1000_set_rx_mode(struct net_device *netdev)
2139 rctl |= E1000_RCTL_VFE; 2139 rctl |= E1000_RCTL_VFE;
2140 } 2140 }
2141 2141
2142 if (netdev->uc.count > rar_entries - 1) { 2142 if (netdev_uc_count(netdev) > rar_entries - 1) {
2143 rctl |= E1000_RCTL_UPE; 2143 rctl |= E1000_RCTL_UPE;
2144 } else if (!(netdev->flags & IFF_PROMISC)) { 2144 } else if (!(netdev->flags & IFF_PROMISC)) {
2145 rctl &= ~E1000_RCTL_UPE; 2145 rctl &= ~E1000_RCTL_UPE;
@@ -2162,7 +2162,7 @@ static void e1000_set_rx_mode(struct net_device *netdev)
2162 */ 2162 */
2163 i = 1; 2163 i = 1;
2164 if (use_uc) 2164 if (use_uc)
2165 list_for_each_entry(ha, &netdev->uc.list, list) { 2165 netdev_for_each_uc_addr(ha, netdev) {
2166 if (i == rar_entries) 2166 if (i == rar_entries)
2167 break; 2167 break;
2168 e1000_rar_set(hw, ha->addr, i++); 2168 e1000_rar_set(hw, ha->addr, i++);