]> 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)
commitbf676022c8762f6696d301a42db94c0f0dc797a8
tree1ef00df6b3fb00d5c81eaa7640c8411e94cbcaa6
parent3f3082080d0653d9b273890356490dc7000a298c
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