]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Decouple MR allocation and population flows
authorIlya Lesokhin <ilyal@mellanox.com>
Thu, 17 Aug 2017 12:52:30 +0000 (15:52 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 21:47:34 +0000 (17:47 -0400)
commite7075f34e6ca9ba85d3d38b241a7959c84185a28
tree1846cce849a0a31e260251fa33bc247c0f382864
parent5846efb00ba8977e45c06194b338d7ec7d1f9051
IB/mlx5: Decouple MR allocation and population flows

mlx5 compatible devices have two ways of populating the MTT
table of an MKEY: using a FW command and using a UMR WQE.

A UMR is much faster, so it should be used whenever possible.
Unfortunately the code today uses UMR only if the MKEY was allocated
from the MR cache.

Fix the code to use UMR even for MKEYs that were allocated using
a FW command.

Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mr.c