]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: check 1000M half for hns3_ethtool_ops.set_link_ksettings
authorPeng Li <lipeng321@huawei.com>
Thu, 4 Apr 2019 08:17:48 +0000 (16:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Apr 2019 17:20:38 +0000 (10:20 -0700)
commit53fa92afbc9aef486bc7da224c23f0dca2f96e0c
tree05472bedd20a48066714a3582d70dc0cad2a0855
parent15e90ee6908558996cf43878eb4dc02f3fae747c
net: hns3: check 1000M half for hns3_ethtool_ops.set_link_ksettings

Hip08 SOC does not support 1000M half, this patch adds 1000M half
check for hns3_ethtool_ops.set_link_ksettings, so the user can not
set 1000M half by ethtool.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c