]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: bug fix of ethtool show the speed
authorDaode Huang <huangdaode@hisilicon.com>
Sat, 1 Apr 2017 11:03:35 +0000 (12:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2017 21:48:43 +0000 (14:48 -0700)
commitb8a67a752589ae8c0a964e851b958c9f9a6236a8
tree1ef00df6b3fb00d5c81eaa7640c8411e94cbcaa6
parente21f02db451fe37d0d9cd73177962d51f305b028
net: hns: bug fix of ethtool show the speed

When run ethtool ethX on hns driver, the speed will show
as "Unknown". The base.speed is not correct assigned,
this patch fix this bug.

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c