]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix to support autoneg only for port attached with phy
authorFuyun Liang <liangfuyun1@huawei.com>
Tue, 1 May 2018 18:56:02 +0000 (19:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 19:08:37 +0000 (15:08 -0400)
commit45cd188fd92168ccb64bb20b162632a64fcbc686
treea7782610ae139f95e6224db83bf327536ae4fd28
parente2e1a9fabf8412bb84e9a2d4a2882b5188c364ed
net: hns3: Fix to support autoneg only for port attached with phy

This patch adds a check to support autoneg(ethtool -A) only when PHY
is attached with the port.

Fixes: 8d24118d4958 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility
Layer) Support")
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c