]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:34:45 +0000 (07:34 +0100)
commit8a3869756e5c13a8822c2d655ba52680efa7783c
treeaff9169fd50fafa40f55a3c35738a2e97ad21178
parente5e41dc9f115e2cb4bbf0e11150cd7e07502f1de
net: hns3: fix incorrect components info of ethtool --reset command

BugLink: https://bugs.launchpad.net/bugs/1953370
[ Upstream commit 82229c4dbb8a2780f05fa1bab29c97ef7bcd21bb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c