summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rdmavt/qp.c
diff options
context:
space:
mode:
authorDennis Dalessandro <dennis.dalessandro@intel.com>2016-02-14 12:11:03 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-10 20:38:10 -0500
commitce73fe25a6bd4a4deabed57e2553100e10fb8362 (patch)
tree7066567dc703f58bc4ba2ba2b71672506f8764e0 /drivers/infiniband/sw/rdmavt/qp.c
parent4eadd8ff21bffcaf3338267dcca571accc612c8e (diff)
IB/rdmavt: Remove RVT_FLAGs
While hfi1 and qib were still supporting bits and pieces of core verbs components there needed to be a way to convey if rdmavt should handle allocation and initialize of resources like the queue pair table. Now that all of this is moved into rdmavt there is no need for these flags. They are no longer used in the drivers. Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Jubin John <jubin.john@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw/rdmavt/qp.c')
-rw-r--r--drivers/infiniband/sw/rdmavt/qp.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/infiniband/sw/rdmavt/qp.c b/drivers/infiniband/sw/rdmavt/qp.c
index 5809562fefda..441e17a0467f 100644
--- a/drivers/infiniband/sw/rdmavt/qp.c
+++ b/drivers/infiniband/sw/rdmavt/qp.c
@@ -173,11 +173,6 @@ int rvt_driver_qp_init(struct rvt_dev_info *rdi)
int i;
int ret = -ENOMEM;
- if (rdi->flags & RVT_FLAG_QP_INIT_DRIVER) {
- rvt_pr_info(rdi, "Driver is doing QP init.\n");
- return 0;
- }
-
if (!rdi->dparms.qp_table_size)
return -EINVAL;
@@ -284,9 +279,6 @@ void rvt_qp_exit(struct rvt_dev_info *rdi)
if (!rdi->qp_dev)
return;
- if (rdi->flags & RVT_FLAG_QP_INIT_DRIVER)
- return; /* driver did the qp init so nothing else to do */
-
kfree(rdi->qp_dev->qp_table);
free_qpn_table(&rdi->qp_dev->qpn_table);
kfree(rdi->qp_dev);