[MLX4] added new Registry parameter for number of FC_EXCHs and added a sanity check...
[mirror/winof/.git] / hw / mlx4 / kernel / bus / ib / main.c
index a886302..79375d9 100644 (file)
@@ -101,8 +101,7 @@ static int mlx4_ib_query_device(struct ib_device *ibdev,
 
        props->max_mr_size         = ~0ull;
        props->page_size_cap       = dev->dev->caps.page_size_cap;
-       props->max_qp              = dev->dev->caps.num_qps - dev->dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW] - 
-                                dev->dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FC_EXCH];
+       props->max_qp              = dev->dev->caps.num_qps - dev->dev->caps.total_reserved_qps;
        props->max_qp_wr           = dev->dev->caps.max_wqes - MLX4_IB_SQ_MAX_SPARE;
 
        props->max_sge             = min(dev->dev->caps.max_sq_sg,