OSDN Git Service

net: hns3: fix incorrect components info of ethtool --reset command
authorJie Wang <wangjie125@huawei.com>
Fri, 26 Nov 2021 12:03:18 +0000 (20:03 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 19:36:29 +0000 (11:36 -0800)
commit82229c4dbb8a2780f05fa1bab29c97ef7bcd21bb
treeaa2f8ff8ce9a1cd4ef1342f56232ce4bc72b430a
parent9c14791748708d87c4d02ba74eb7e281e141d6e4
net: hns3: fix incorrect components info of ethtool --reset command

Currently, HNS3 driver doesn't clear the reset flags of components after
successfully executing reset, it causes userspace info of
"Components reset" and "Components not reset" is incorrect.

So fix this problem by clear corresponding reset flag after reset process.

Fixes: ddccc5e368a3 ("net: hns3: add support for triggering reset by ethtool")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c