diff options
-rw-r--r-- | drivers/infiniband/core/cma.c | 1 | ||||
-rw-r--r-- | drivers/infiniband/hw/mlx4/mr.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/nes/nes_verbs.c | 9 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 875e34e0b235..09b4b13fdbee 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c | |||
@@ -1683,6 +1683,7 @@ int rdma_set_ib_paths(struct rdma_cm_id *id, | |||
1683 | } | 1683 | } |
1684 | 1684 | ||
1685 | memcpy(id->route.path_rec, path_rec, sizeof *path_rec * num_paths); | 1685 | memcpy(id->route.path_rec, path_rec, sizeof *path_rec * num_paths); |
1686 | id->route.num_paths = num_paths; | ||
1686 | return 0; | 1687 | return 0; |
1687 | err: | 1688 | err: |
1688 | cma_comp_exch(id_priv, CMA_ROUTE_RESOLVED, CMA_ADDR_RESOLVED); | 1689 | cma_comp_exch(id_priv, CMA_ROUTE_RESOLVED, CMA_ADDR_RESOLVED); |
diff --git a/drivers/infiniband/hw/mlx4/mr.c b/drivers/infiniband/hw/mlx4/mr.c index 8f3666b20ea4..63ec26f6b0c6 100644 --- a/drivers/infiniband/hw/mlx4/mr.c +++ b/drivers/infiniband/hw/mlx4/mr.c | |||
@@ -238,7 +238,7 @@ struct ib_fast_reg_page_list *mlx4_ib_alloc_fast_reg_page_list(struct ib_device | |||
238 | mfrpl->mapped_page_list = dma_alloc_coherent(&dev->dev->pdev->dev, | 238 | mfrpl->mapped_page_list = dma_alloc_coherent(&dev->dev->pdev->dev, |
239 | size, &mfrpl->map, | 239 | size, &mfrpl->map, |
240 | GFP_KERNEL); | 240 | GFP_KERNEL); |
241 | if (!mfrpl->ibfrpl.page_list) | 241 | if (!mfrpl->mapped_page_list) |
242 | goto err_free; | 242 | goto err_free; |
243 | 243 | ||
244 | WARN_ON(mfrpl->map & 0x3f); | 244 | WARN_ON(mfrpl->map & 0x3f); |
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c index 69928296d74b..36348bf9dee2 100644 --- a/drivers/infiniband/hw/nes/nes_verbs.c +++ b/drivers/infiniband/hw/nes/nes_verbs.c | |||
@@ -2820,11 +2820,10 @@ static int nes_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, | |||
2820 | attr->cap.max_send_wr = nesqp->hwqp.sq_size; | 2820 | attr->cap.max_send_wr = nesqp->hwqp.sq_size; |
2821 | attr->cap.max_recv_wr = nesqp->hwqp.rq_size; | 2821 | attr->cap.max_recv_wr = nesqp->hwqp.rq_size; |
2822 | attr->cap.max_recv_sge = 1; | 2822 | attr->cap.max_recv_sge = 1; |
2823 | if (nes_drv_opt & NES_DRV_OPT_NO_INLINE_DATA) { | 2823 | if (nes_drv_opt & NES_DRV_OPT_NO_INLINE_DATA) |
2824 | init_attr->cap.max_inline_data = 0; | 2824 | attr->cap.max_inline_data = 0; |
2825 | } else { | 2825 | else |
2826 | init_attr->cap.max_inline_data = 64; | 2826 | attr->cap.max_inline_data = 64; |
2827 | } | ||
2828 | 2827 | ||
2829 | init_attr->event_handler = nesqp->ibqp.event_handler; | 2828 | init_attr->event_handler = nesqp->ibqp.event_handler; |
2830 | init_attr->qp_context = nesqp->ibqp.qp_context; | 2829 | init_attr->qp_context = nesqp->ibqp.qp_context; |