]> 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)
commitb6c587138bc9f08bbc4f2fc3926b025f1f1a9848
treea7782610ae139f95e6224db83bf327536ae4fd28
parent2e5461392ab5b4fe1e2b9465ccc0eebbe8b3294a
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: efa29b6d502b ("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