]>
Commit | Line | Data |
---|---|---|
a65d4bac GKH |
1 | From foo@baz Sat Jul 28 10:25:26 CEST 2018 |
2 | From: Emil Tantilov <emil.s.tantilov@intel.com> | |
3 | Date: Mon, 14 May 2018 11:16:16 -0700 | |
4 | Subject: ixgbevf: fix MAC address changes through ixgbevf_set_mac() | |
5 | ||
6 | From: Emil Tantilov <emil.s.tantilov@intel.com> | |
7 | ||
8 | [ Upstream commit 6e7d0ba1e59b1a306761a731e67634c0f2efea2a ] | |
9 | ||
10 | Set hw->mac.perm_addr in ixgbevf_set_mac() in order to avoid losing the | |
11 | custom MAC on reset. This can happen in the following case: | |
12 | ||
13 | >ip link set $vf address $mac | |
14 | >ethtool -r $vf | |
15 | ||
16 | Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> | |
17 | Tested-by: Andrew Bowers <andrewx.bowers@intel.com> | |
18 | Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> | |
19 | Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> | |
20 | Signed-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; |