net: hns3: disable loopback setting in hclge_mac_init
authorYufeng Mo <moyufeng@huawei.com>
Thu, 5 Sep 2019 13:31:41 +0000 (21:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Sep 2019 13:20:35 +0000 (15:20 +0200)
commit1cbc662dd847ea4d6e934002757d3e00449013f4
tree998cc375b334331820b955e150d0293603426591
parent1483fa4946435d6b7cac53096922fa85f9886647
net: hns3: disable loopback setting in hclge_mac_init

If the selftest and reset are performed at the same time, the loopback
setting may be still in the enable state after the reset. As a result,
packets cannot be sent out.

This patch fixes this issue by disabling loopback in hclge_mac_init.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c