]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Fix UMR size calculation
authorArtemy Kovalyov <artemyko@mellanox.com>
Wed, 5 Apr 2017 06:23:52 +0000 (09:23 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 25 Apr 2017 19:40:28 +0000 (15:40 -0400)
commit1c1403a8e129a1ae5714efb8f95b71db4b0bc0f0
tree9832deb5e7ed8c9d3fcc5e6fac5defa3e84552b8
parentbb14910e69ae566c6e195323a8e7d6c9d892ac41
IB/mlx5: Fix UMR size calculation

Translation table updates of large UMR may require multiple post send
operations. The last operations can be in various lengths, but current
code set them to be the same length.

Fixes: b83366b2be84 ('IB/mlx5: Add MR cache for large UMR regions')
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mr.c