]> 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)
commit5126b9d3d4acdebc12b9d436282f88d8a1b5146c
treef507c8c0fd3f86e0187b07d1220f7ec2c10918d9
parentef39d632608e66f428c1246836fd060cf4818d67
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: 46a3df9f9718 ("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