RDMA/hns: Add judgment on the execution result of CMDQ that free vf resource
authorWenpeng Liang <liangwenpeng@huawei.com>
Sat, 9 Apr 2022 08:32:53 +0000 (16:32 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 11 Apr 2022 14:00:34 +0000 (11:00 -0300)
commitac88da750f09c749e1c0ab0b8e5468c533704e52
tree87e9eed81f1757cde5dfed1cafb294412dc39084
parent601cdd861cf551e330c85c4dfa6d25bef3b8d554
RDMA/hns: Add judgment on the execution result of CMDQ that free vf resource

CDMQ may fail to execute, so its return value should not be ignored.

Link: https://lore.kernel.org/r/20220409083254.9696-5-liangwenpeng@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c