Skip to content

Commit

Permalink
RDMA/hns: Skip qp_flow_control_init() for HIP09
Browse files Browse the repository at this point in the history
Since HIP09 does not require this function, it should be masked.

Link: https://lore.kernel.org/r/1612517974-31867-7-git-send-email-liweihang@huawei.com
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
  • Loading branch information
Yixing Liu authored and Jason Gunthorpe committed Feb 9, 2021
1 parent 7373de9 commit 3fe07a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/infiniband/hw/hns/hns_roce_hw_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5235,6 +5235,9 @@ static int hns_roce_v2_qp_flow_control_init(struct hns_roce_dev *hr_dev,
struct hns_roce_cmq_desc desc;
int ret, i;

if (hr_dev->pci_dev->revision >= PCI_REVISION_ID_HIP09)
return 0;

mutex_lock(&hr_dev->qp_table.scc_mutex);

/* set scc ctx clear done flag */
Expand Down

0 comments on commit 3fe07a0

Please sign in to comment.