提交 f6d0c3aa 编写于 作者: O oulijun 提交者: Xie XiuQi

RDMA/hns: Move dfx for counting pd into the correct place

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This patch moves dfx code outside of version control because it will
be used no matter which kernel version.

Feature or Bugfix:Bugfix
Signed-off-by: Noulijun <oulijun@huawei.com>
Reviewed-by: Nliuyixian <liuyixian@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 f4b1ce4a
...@@ -127,10 +127,12 @@ struct ib_pd *hns_roce_alloc_pd(struct ib_device *ib_dev, ...@@ -127,10 +127,12 @@ struct ib_pd *hns_roce_alloc_pd(struct ib_device *ib_dev,
} }
} }
#endif
rdfx_func_cnt(hr_dev, RDFX_FUNC_ALLOC_PD); rdfx_func_cnt(hr_dev, RDFX_FUNC_ALLOC_PD);
rdfx_alloc_rdfx_pd(hr_dev, pd); rdfx_alloc_rdfx_pd(hr_dev, pd);
#endif
hns_roce_inc_rdma_hw_stats(ib_dev, HW_STATS_PD_ALLOC); hns_roce_inc_rdma_hw_stats(ib_dev, HW_STATS_PD_ALLOC);
return &pd->ibpd; return &pd->ibpd;
} }
EXPORT_SYMBOL_GPL(hns_roce_alloc_pd); EXPORT_SYMBOL_GPL(hns_roce_alloc_pd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册