]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58b698a5f4833c736e5f244d18343daf8b0c0a42
tree998cc375b334331820b955e150d0293603426591
parenta4512a833b3a71b134e6e6fbe19566632a16cf17
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