Loading
RDMA/hns: Don't query *except on hip10*
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBD4ID -------------------------------------------------------------------------- Commit 1470b68f ("RDMA/hns: Fix print after query hw id failed.") was meant to avoid error printing when HNS_ROCE_OPC_QUERY_HW_ID cmd is not supported, that is, when CMD_NOT_EXIST error is returned by FW. But the checking condition is incorrect. Now all errors printings of HNS_ROCE_OPC_QUERY_HW_ID, even if the error code is not CMD_NOT_EXIST, will be ignored. This cmd is for stars mode and cnp priority setting. Since this two features are supported only by HIP10, don't send this cmd on other platform. Fixes: 1470b68f ("RDMA/hns: Fix print after query hw id failed.") Fixes: 867e1e95 ("RDMA/hns: Support query HW ID from user space.") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com> Signed-off-by:
Xinghai Cen <cenxinghai@h-partners.com>