]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: fix the wrong speed for bond
authorQianqian Xie <xieqianqian@huawei.com>
Tue, 21 Jun 2016 03:56:29 +0000 (11:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 08:51:55 +0000 (04:51 -0400)
commitfb24b85c33e08d81cffe538f5a910f7a5087ab0c
treef40717a9baefb9e67501844cdb4aec15b7a2a44d
parent6206297223b84168a38f92cbad885b7dbdd947de
net: hns: fix the wrong speed for bond

For debug-ports,there are two non-synchronized processes:
Speed-Auto-Negotiation and Link-Update-Status. The two
processes are towed by two different state machines.
Bond reads the speed when link up, but the speed maybe
not update the right value at that time.That make for bond's
wrong speed. Thus only one state machine should be used and
if phy_state_machine is used, it does not need to do
hns_nic_update_link_status().

Signed-off-by: Qianqian Xie <xieqianqian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c