net: hns3: After setting the loopback, add the status of getting MAC
authorliuzhongzhu <[email protected]>
Sat, 26 Jan 2019 16:49:15 +0000 (00:49 +0800)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c