]> 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)
commit55d82d36817ad00aa2f9b885ee0b1fb481a6ebe3
treeb158c4643aaaeb489e6197819596f4003735ceaf
parent1a912efae24160384df55637c9b368a218b24a68
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: a190d6c1ec99 ("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