aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgb')
-rw-r--r--drivers/net/ixgb/ixgb_main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c
index 93d018505ebb..c9fef65cb98b 100644
--- a/drivers/net/ixgb/ixgb_main.c
+++ b/drivers/net/ixgb/ixgb_main.c
@@ -1088,10 +1088,9 @@ ixgb_set_multi(struct net_device *netdev)
1088 1088
1089 IXGB_WRITE_REG(hw, RCTL, rctl); 1089 IXGB_WRITE_REG(hw, RCTL, rctl);
1090 1090
1091 for (i = 0, mc_ptr = netdev->mc_list; 1091 i = 0;
1092 mc_ptr; 1092 netdev_for_each_mc_addr(mc_ptr, netdev)
1093 i++, mc_ptr = mc_ptr->next) 1093 memcpy(&mta[i++ * IXGB_ETH_LENGTH_OF_ADDRESS],
1094 memcpy(&mta[i * IXGB_ETH_LENGTH_OF_ADDRESS],
1095 mc_ptr->dmi_addr, IXGB_ETH_LENGTH_OF_ADDRESS); 1094 mc_ptr->dmi_addr, IXGB_ETH_LENGTH_OF_ADDRESS);
1096 1095
1097 ixgb_mc_addr_list_update(hw, mta, netdev_mc_count(netdev), 0); 1096 ixgb_mc_addr_list_update(hw, mta, netdev_mc_count(netdev), 0);