Until all queue pair functionality is moved to rdmavt we need to provide
access to the reset function. This is only temporary and will be reverted
back to a static, non exported function in the end.
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
* @qp: the QP to reset
* @type: the QP type
*/
-static void reset_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp,
- enum ib_qp_type type)
+void rvt_reset_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp,
+ enum ib_qp_type type)
{
qp->remote_qpn = 0;
qp->qkey = 0;
}
qp->r_sge.num_sge = 0;
}
+EXPORT_SYMBOL(rvt_reset_qp);
/**
* rvt_create_qp - create a queue pair for a device
}
qp->ibqp.qp_num = err;
qp->port_num = init_attr->port_num;
- reset_qp(rdi, qp, init_attr->qp_type);
+ rvt_reset_qp(rdi, qp, init_attr->qp_type);
break;
default:
void rvt_update_mmap_info(struct rvt_dev_info *rdi, struct rvt_mmap_info *ip,
u32 size, void *obj);
+/* Temporary export */
+void rvt_reset_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp,
+ enum ib_qp_type type);
#endif /* DEF_RDMA_VT_H */
*
*/
+#include <rdma/rdma_vt.h>
#include <rdma/ib_pack.h>
/*
* Atomic bit definitions for r_aflags.