]> 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)
commitbf15057beec09b82bfe87a72e2d0072ea817f56a
tree1846cce849a0a31e260251fa33bc247c0f382864
parentc56ca96a7a5a9dc91bd64f76839554261ae4450a
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