Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1109427imm; Wed, 1 Aug 2018 10:19:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd93Sxpn+rNBnMvdB7c90o+DPwbqRtHF+UZ9V8qWvYcVBdgOk6eX/V4QuzXAjhteDaWNlhj X-Received: by 2002:a62:e00a:: with SMTP id f10-v6mr27793661pfh.208.1533143993678; Wed, 01 Aug 2018 10:19:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533143993; cv=none; d=google.com; s=arc-20160816; b=HpUwm5TxWFt3SGwymzBtnc5qBz/r7qRTb46zmUgxrAHHeqpDfKv2aJwYw2zcv57z/q 7L9JaYWdVb8xU9sH/LcUkC6cwNWran0hUwwHJzwzPa44REl2kDPL1G/yVTnFotpMXIhf +bg0/OsLRNHPhnEaTr2NXqX52CLskBz9V+lWoV+R1JeYjaPv53XGAyNCrAp7kIFS3p9d VC3l9TRym3gC9mxUhaXOqnZ5VC4+udAQvTr1MJv6USzqkB1CGkYfTf9ZLdhkHgdpomEm zIbLVFQg9v/U330+/+Woi7uiYyn3UVQNwY0YA12GfNMhGk/b9faJ5EJyRKc0SQO9JWrS +2yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=7jKkcqkZsXAPl94WZRGWGEJjXuWv1lAp9U6BAigGOQs=; b=oZyq3IzOApREiqCSIEU0S9hilbQZorloIAFhznylw609hFyT1fvfsE0+n3Brr8rieM 6gLox7uvLOTQY7N/Rx9vPmzBye4KbWNwpE/g4ej+cPn79ZQwpG6aGbz94BlnpLlp4m2k EkXZKeFWiSeK9LQf/d9Fbvb9cHccT5Eewaf43IwjxjmTBtwTc6ZZbkHR9zSFcJliTWWR a80OdXTF0jbxgGGQlg+VIfsszqIm5UFgCiU0spdSzp/JFN1bLkt7AVL4rU0lMyJOuv/Z 2jTvWN1dJPABgBc6+mliiO7nFasXfWI88H8RKMapo+RNtbQZjIaD9//WuCfTbWTcr6dx Jywg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z28-v6si18676216pfa.161.2018.08.01.10.19.39; Wed, 01 Aug 2018 10:19:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404909AbeHATE4 (ORCPT + 99 others); Wed, 1 Aug 2018 15:04:56 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46982 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404205AbeHATEz (ORCPT ); Wed, 1 Aug 2018 15:04:55 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D4866CD1; Wed, 1 Aug 2018 17:18:14 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Emil Tantilov , Andrew Bowers , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.14 129/246] ixgbevf: fix MAC address changes through ixgbevf_set_mac() Date: Wed, 1 Aug 2018 18:50:39 +0200 Message-Id: <20180801165017.906958274@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Emil Tantilov [ 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 Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -3737,6 +3737,7 @@ static int ixgbevf_set_mac(struct net_de return -EPERM; ether_addr_copy(hw->mac.addr, addr->sa_data); + ether_addr_copy(hw->mac.perm_addr, addr->sa_data); ether_addr_copy(netdev->dev_addr, addr->sa_data); return 0;