IB/mlx5: Fix retrieval of index to first hi class bfreg
authorEli Cohen <eli@mellanox.com>
Tue, 3 Jan 2017 21:55:22 +0000 (23:55 +0200)
committerLeon Romanovsky <leon@kernel.org>
Sun, 8 Jan 2017 09:21:26 +0000 (11:21 +0200)
commit0b80c14f009758cefeed0edff4f9141957964211
tree95c1e35de630935e82e2fb5b1a4a9dd2630b6005
parent2f5ff26478adaff5ed9b7ad4079d6a710b5f27e7
IB/mlx5: Fix retrieval of index to first hi class bfreg

First the function retrieving the index of the first hi latency class
blue flame register. High latency class bfregs are located right above
medium latency class bfregs.

Fixes: c1be5232d21d ('IB/mlx5: Fix micro UAR allocator')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c