]> 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)
commitcaa01ac80fe46971177409bc25b57ae1422ebc37
tree7a2c1d7dcbd6d98bcc09bde0739029b0b598c7b8
parent9948a2d2f88c1d7fa386af319a010aba41dacc94
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