net: hns3: Fix for setting mac address when resetting
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 9 May 2018 16:24:38 +0000 (17:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 21:27:10 +0000 (17:27 -0400)
commitf09555ffe379aeef7fa83c459bbe29e8bce8ec50
treeb158c4643aaaeb489e6197819596f4003735ceaf
parentbfcbcb67e9611cd27da84810f09c57cbe89aa687
net: hns3: Fix for setting mac address when resetting

When hns3_init_mac_addr is called during reset process, it will
get the mac address from NCL_CONFIG and set it to hardware. If
user has changed the mac address, then the mac address set by
user is lost during resetting.

This patch fixes it by not getting the mac address from NCL_CONFIG
when resetting.

Fixes: 424eb834a9be ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c