]> git.openfabrics.org - ~emulex/for-vlad/compat-rdma.git/commit
IB/mlx5: Fix binary compatibility with libmlx5
authorVladimir Sokolovsky <vlad@mellanox.com>
Mon, 3 Feb 2014 15:25:40 +0000 (17:25 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Mon, 3 Feb 2014 15:25:40 +0000 (17:25 +0200)
commit013d0bc7c4b48067fe3eea38f8dac7b4ceec64d5
tree13082d6c350fd29b010248c82e01781389944630
parente6b91feae6c98b06982a11a073d9c80ef13aa883
IB/mlx5: Fix binary compatibility with libmlx5

Commit c1be5232d21d "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.

Issue: 371069

Change-Id: I43b67013e11f4c8dc395b4920118fe2831ffe19d
Fixes: c1be5232d21d ('Fix micro UAR allocator')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
linux-next-pending/0002-IB-mlx5-Fix-binary-compatibility-with-libmlx5.patch [new file with mode: 0644]