net: hns3: disable auto-negotiation off with 1000M setting in ethtool
authorYufeng Mo <moyufeng@huawei.com>
Sat, 9 May 2020 09:27:41 +0000 (17:27 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 May 2020 02:43:22 +0000 (19:43 -0700)
commit81c287e3dda20441c1469426fc9f44c9b2374fa9
tree85c49701511204859d92b8bd12adf49a825a4f39
parentb4401a044a1e6397d21806c210dd0d9b4da93e27
net: hns3: disable auto-negotiation off with 1000M setting in ethtool

The 802.3 specification does not specify the behavior of
auto-negotiation off with 1000M in PHY. Therefore, some PHY
compatibility issues occur. This patch forbids the setting of
this unreasonable mode by ethtool in driver.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c