aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbevf/vf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/vf.c')
-rw-r--r--drivers/net/ethernet/intel/ixgbevf/vf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/vf.c b/drivers/net/ethernet/intel/ixgbevf/vf.c
index 387b52635bc0..4d44d64ae387 100644
--- a/drivers/net/ethernet/intel/ixgbevf/vf.c
+++ b/drivers/net/ethernet/intel/ixgbevf/vf.c
@@ -242,7 +242,7 @@ static s32 ixgbevf_set_uc_addr_vf(struct ixgbe_hw *hw, u32 index, u8 *addr)
242 msgbuf[0] |= index << IXGBE_VT_MSGINFO_SHIFT; 242 msgbuf[0] |= index << IXGBE_VT_MSGINFO_SHIFT;
243 msgbuf[0] |= IXGBE_VF_SET_MACVLAN; 243 msgbuf[0] |= IXGBE_VF_SET_MACVLAN;
244 if (addr) 244 if (addr)
245 memcpy(msg_addr, addr, 6); 245 memcpy(msg_addr, addr, ETH_ALEN);
246 ret_val = mbx->ops.write_posted(hw, msgbuf, 3); 246 ret_val = mbx->ops.write_posted(hw, msgbuf, 3);
247 247
248 if (!ret_val) 248 if (!ret_val)
@@ -275,7 +275,7 @@ static s32 ixgbevf_set_rar_vf(struct ixgbe_hw *hw, u32 index, u8 *addr,
275 275
276 memset(msgbuf, 0, sizeof(msgbuf)); 276 memset(msgbuf, 0, sizeof(msgbuf));
277 msgbuf[0] = IXGBE_VF_SET_MAC_ADDR; 277 msgbuf[0] = IXGBE_VF_SET_MAC_ADDR;
278 memcpy(msg_addr, addr, 6); 278 memcpy(msg_addr, addr, ETH_ALEN);
279 ret_val = mbx->ops.write_posted(hw, msgbuf, 3); 279 ret_val = mbx->ops.write_posted(hw, msgbuf, 3);
280 280
281 if (!ret_val) 281 if (!ret_val)