aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4/mlx4_ib.h
diff options
context:
space:
mode:
authorGuy Levi <guyle@mellanox.com>2017-11-02 15:22:25 +0200
committerDoug Ledford <dledford@redhat.com>2017-11-13 14:42:04 -0500
commited8637d3615b38bd4d12ba5eb8ee6a0c3888e754 (patch)
treeaba1750f891b8979c86e506c77977744ab0a4979 /drivers/infiniband/hw/mlx4/mlx4_ib.h
parentIB/mlx4: Use optimal numbers of MTT entries (diff)
downloadlinux-dev-ed8637d3615b38bd4d12ba5eb8ee6a0c3888e754.tar.xz
linux-dev-ed8637d3615b38bd4d12ba5eb8ee6a0c3888e754.zip
IB/mlx4: Add contig support for control objects
Taking advantage of the optimization which was introduced in previous commit ("IB/mlx4: Use optimal numbers of MTT entries") to optimize the MTT usage for QP and CQ. Signed-off-by: Guy Levi <guyle@mellanox.com> Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/mlx4_ib.h')
-rw-r--r--drivers/infiniband/hw/mlx4/mlx4_ib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/mlx4_ib.h b/drivers/infiniband/hw/mlx4/mlx4_ib.h
index d09d4e7b2706..719dae354066 100644
--- a/drivers/infiniband/hw/mlx4/mlx4_ib.h
+++ b/drivers/infiniband/hw/mlx4/mlx4_ib.h
@@ -935,5 +935,7 @@ struct ib_rwq_ind_table
struct ib_rwq_ind_table_init_attr *init_attr,
struct ib_udata *udata);
int mlx4_ib_destroy_rwq_ind_table(struct ib_rwq_ind_table *wq_ind_table);
+int mlx4_ib_umem_calc_optimal_mtt_size(struct ib_umem *umem, u64 start_va,
+ int *num_of_mtts);
#endif /* MLX4_IB_H */