]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.14.60/ixgbevf-fix-mac-address-changes-through-ixgbevf_set_mac.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 4.14.60 / ixgbevf-fix-mac-address-changes-through-ixgbevf_set_mac.patch
CommitLineData
a65d4bac
GKH
1From foo@baz Sat Jul 28 10:25:26 CEST 2018
2From: Emil Tantilov <emil.s.tantilov@intel.com>
3Date: Mon, 14 May 2018 11:16:16 -0700
4Subject: ixgbevf: fix MAC address changes through ixgbevf_set_mac()
5
6From: Emil Tantilov <emil.s.tantilov@intel.com>
7
8[ Upstream commit 6e7d0ba1e59b1a306761a731e67634c0f2efea2a ]
9
10Set hw->mac.perm_addr in ixgbevf_set_mac() in order to avoid losing the
11custom MAC on reset. This can happen in the following case:
12
13>ip link set $vf address $mac
14>ethtool -r $vf
15
16Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
17Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
18Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
19Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
20Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21---
22 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 +
23 1 file changed, 1 insertion(+)
24
25--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
26+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
27@@ -3737,6 +3737,7 @@ static int ixgbevf_set_mac(struct net_de
28 return -EPERM;
29
30 ether_addr_copy(hw->mac.addr, addr->sa_data);
31+ ether_addr_copy(hw->mac.perm_addr, addr->sa_data);
32 ether_addr_copy(netdev->dev_addr, addr->sa_data);
33
34 return 0;