]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:04:54 +0000 (09:04 +0100)
commitaca745ba8e14c16f98d852f4cbafe24de9f460c9
tree86bc56f5bf9095b9d1cd044d232e33548ba534fd
parentc8b7bd8440a56d3a03a888bd92899520f3a0c91e
net: hns3: fix incorrect components info of ethtool --reset command

[ Upstream commit b76ab438ab129c21f14c1b9c68e10a93b8915fd8 ]

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: ab785604394d ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c