]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit4b7cdecaa441bc296a507371766109624c177ec0
tree1ef00df6b3fb00d5c81eaa7640c8411e94cbcaa6
parentfb0672d11634dd072bfb66a0b546b4fc592f4158
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