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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 17 May 2018 16:07:37 +0000 (09:07 -0700)
commit6e7d0ba1e59b1a306761a731e67634c0f2efea2a
treee33f2bb99931d82049d376f2a64d6656c4cebe70
parenta8d9bb3d448f3c9a26a885a3104738098a6625c7
ixgbevf: fix MAC address changes through ixgbevf_set_mac()

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>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c