OSDN Git Service

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)
commit0c963e8c20ce368ddedc22cbfa710315d715dfae
treea7782610ae139f95e6224db83bf327536ae4fd28
parentc5ef83cbb1e9fa17a3b78fb2deb25ae8beebbf48
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: e2cb1dec9779 ("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