linux/drivers/infiniband/hw/mlx5
Eli Cohen 78c0f98cc9 IB/mlx5: Fix binary compatibility with libmlx5
Commit c1be5232d2 ("Fix micro UAR allocator") broke binary compatibility
between libmlx5 and mlx5_ib since it defines a different value to the number
of micro UARs per page, leading to wrong calculation in libmlx5. This patch
defines struct mlx5_ib_alloc_ucontext_req_v2 as an extension to struct
mlx5_ib_alloc_ucontext_req.  The extended size is determined in mlx5_ib_alloc_ucontext()
and in case of old library we use uuarn 0 which works fine -- this is
acheived due to create_user_qp() falling back from high to medium then to
low class where low class will return 0.  For new libraries we use the
more sophisticated allocation algorithm.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2014-02-06 23:00:48 -08:00
..
ah.c
cq.c IB/mlx5: Verify reserved fields are cleared 2014-01-22 23:23:54 -08:00
doorbell.c
Kconfig
mad.c
main.c IB/mlx5: Fix binary compatibility with libmlx5 2014-02-06 23:00:48 -08:00
Makefile
mem.c
mlx5_ib.h IB/mlx5: Add support for resize CQ 2014-01-22 23:23:50 -08:00
mr.c IB/mlx5: Remove unused code in mr.c 2014-01-14 13:54:23 -08:00
qp.c IB/mlx5: Fix binary compatibility with libmlx5 2014-02-06 23:00:48 -08:00
srq.c mlx5: Use enum to indicate adapter page size 2013-11-08 14:43:01 -08:00
user.h IB/mlx5: Fix binary compatibility with libmlx5 2014-02-06 23:00:48 -08:00