]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: cleanup mac auto-negotiation state query
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 22 Dec 2017 04:21:49 +0000 (12:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Dec 2017 15:41:30 +0000 (10:41 -0500)
commit9961f98c6416e298d804a6075bb940d9ce37c1e0
tree7a2c1d7dcbd6d98bcc09bde0739029b0b598c7b8
parent5d14f1619cfbb695a415614b31acb383e28c265a
net: hns3: cleanup mac auto-negotiation state query

When checking whether auto-negotiation is on, driver only needs to
check the value of mac.autoneg(SW) directly, and does not need to
query it from hardware. Because this value is always synchronized
with the auto-negotiation state of hardware.

This patch removes the mac auto-negotiation state query.

Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c