diff options
Diffstat (limited to 'drivers/net/ixgbevf/vf.c')
-rw-r--r-- | drivers/net/ixgbevf/vf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ixgbevf/vf.c b/drivers/net/ixgbevf/vf.c index f457c52b5ed4..852e9c4fd934 100644 --- a/drivers/net/ixgbevf/vf.c +++ b/drivers/net/ixgbevf/vf.c | |||
@@ -259,7 +259,7 @@ static s32 ixgbevf_set_rar_vf(struct ixgbe_hw *hw, u32 index, u8 *addr, | |||
259 | static s32 ixgbevf_update_mc_addr_list_vf(struct ixgbe_hw *hw, | 259 | static s32 ixgbevf_update_mc_addr_list_vf(struct ixgbe_hw *hw, |
260 | struct net_device *netdev) | 260 | struct net_device *netdev) |
261 | { | 261 | { |
262 | struct dev_addr_list *dmi; | 262 | struct netdev_hw_addr *ha; |
263 | struct ixgbe_mbx_info *mbx = &hw->mbx; | 263 | struct ixgbe_mbx_info *mbx = &hw->mbx; |
264 | u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; | 264 | u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; |
265 | u16 *vector_list = (u16 *)&msgbuf[1]; | 265 | u16 *vector_list = (u16 *)&msgbuf[1]; |
@@ -281,10 +281,10 @@ static s32 ixgbevf_update_mc_addr_list_vf(struct ixgbe_hw *hw, | |||
281 | msgbuf[0] |= cnt << IXGBE_VT_MSGINFO_SHIFT; | 281 | msgbuf[0] |= cnt << IXGBE_VT_MSGINFO_SHIFT; |
282 | 282 | ||
283 | i = 0; | 283 | i = 0; |
284 | netdev_for_each_mc_addr(dmi, netdev) { | 284 | netdev_for_each_mc_addr(ha, netdev) { |
285 | if (i == cnt) | 285 | if (i == cnt) |
286 | break; | 286 | break; |
287 | vector_list[i++] = ixgbevf_mta_vector(hw, dmi->dmi_addr); | 287 | vector_list[i++] = ixgbevf_mta_vector(hw, ha->addr); |
288 | } | 288 | } |
289 | 289 | ||
290 | mbx->ops.write_posted(hw, msgbuf, IXGBE_VFMAILBOX_SIZE); | 290 | mbx->ops.write_posted(hw, msgbuf, IXGBE_VFMAILBOX_SIZE); |