]> git.itanic.dy.fi Git - linux-stable/commit
ixgbevf: fix MAC address changes through ixgbevf_set_mac()
authorEmil Tantilov <emil.s.tantilov@intel.com>
Mon, 14 May 2018 18:16:16 +0000 (11:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:55:20 +0000 (07:55 +0200)
commit8d02fc16faaa1f29500fdda143ef99855d6b9518
treeabb3d0c86025a0711bb83283b99045379917f239
parente51f4fcfad77f932d104304a2e1f0473752f9a85
ixgbevf: fix MAC address changes through ixgbevf_set_mac()

[ Upstream commit 6e7d0ba1e59b1a306761a731e67634c0f2efea2a ]

Set hw->mac.perm_addr in ixgbevf_set_mac() in order to avoid losing the
custom MAC on reset. This can happen in the following case:

>ip link set $vf address $mac
>ethtool -r $vf

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c