OSDN Git Service

net: hns3: After setting the loopback, add the status of getting MAC
authorliuzhongzhu <liuzhongzhu@huawei.com>
Sat, 26 Jan 2019 16:49:15 +0000 (00:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 17:33:30 +0000 (09:33 -0800)
commit350fda0a0af9d077e895c7b01a4901d354ae656e
tree793465a694fbf3e1ad3b065b63b05c231431c849
parent28673b33c75621b52971b5d5aeed0be59de0bda5
net: hns3: After setting the loopback, add the status of getting MAC

After setting the serdes loopback, you need to determine
the status of the MAC negotiation. If a status exception
is obtained after 200ms, a timeout error is returned.

Signed-off-by: liuzhongzhu <liuzhongzhu@huawei.com>
Signed-off-by: Peng Li <lipeng321@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