]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitff740aefecb98da4605df1cada7904c44eaee161
tree1846cce849a0a31e260251fa33bc247c0f382864
parent8b7ff7f3b301de52924cb2cf3fed47b181893116
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