]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36000ea3b0402cbebd1e358bbd0676c717bc69b2
treeb158c4643aaaeb489e6197819596f4003735ceaf
parent1a262f8e01f345a6247cda7e0423aaaa4df1d710
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: 87d50ed74a36 ("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