summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_qp.c
diff options
context:
space:
mode:
authorYixian Liu2017-11-14 10:26:16 +0100
committerJason Gunthorpe2017-12-22 17:21:38 +0100
commitb16f8188472efac75f5afc9a8226d635a9075672 (patch)
treedfa5b4ca939f4c95bc8908dec52c887b882af758 /drivers/infiniband/hw/hns/hns_roce_qp.c
parentRDMA/ocrdma: Fix permissions for OCRDMA_RESET_STATS (diff)
downloadkernel-qcow2-linux-b16f8188472efac75f5afc9a8226d635a9075672.tar.gz
kernel-qcow2-linux-b16f8188472efac75f5afc9a8226d635a9075672.tar.xz
kernel-qcow2-linux-b16f8188472efac75f5afc9a8226d635a9075672.zip
RDMA/hns: Refactor eq code for hip06
Considering the compatibility of supporting hip08's eq process and possible changes of data structure, this patch refactors the eq code structure of hip06. We move all the eq process code for hip06 from hns_roce_eq.c into hns_roce_hw_v1.c, and also for hns_roce_eq.h. With these changes, it will be convenient to add the eq support for later hardware version. Signed-off-by: Yixian Liu <liuyixian@huawei.com> Reviewed-by: Lijun Ou <oulijun@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.huwei@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_qp.c')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_qp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_qp.c b/drivers/infiniband/hw/hns/hns_roce_qp.c
index 49586ec8126a..69e25847ff1b 100644
--- a/drivers/infiniband/hw/hns/hns_roce_qp.c
+++ b/drivers/infiniband/hw/hns/hns_roce_qp.c
@@ -65,6 +65,7 @@ void hns_roce_qp_event(struct hns_roce_dev *hr_dev, u32 qpn, int event_type)
if (atomic_dec_and_test(&qp->refcount))
complete(&qp->free);
}
+EXPORT_SYMBOL_GPL(hns_roce_qp_event);
static void hns_roce_ib_qp_event(struct hns_roce_qp *hr_qp,
enum hns_roce_event type)