]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix a return value error in hclge_get_reset_status()
authorYufeng Mo <moyufeng@huawei.com>
Wed, 15 Sep 2021 13:52:11 +0000 (21:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Sep 2021 12:28:39 +0000 (13:28 +0100)
commit8c46586ee6948e8561ea9f955fb561dac08ed0eb
treef507c8c0fd3f86e0187b07d1220f7ec2c10918d9
parent8cb355eeca15445b524897b9cd75d70f2af1a447
net: hns3: fix a return value error in hclge_get_reset_status()

hclge_get_reset_status() should return the tqp reset status.
However, if the CMDQ fails, the caller will take it as tqp reset
success status by mistake. Therefore, uses a parameters to get
the tqp reset status instead.

Fixes: 575d84053c84 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c