IB/mlx4: Use optimal numbers of MTT entries
authorGuy Levi <guyle@mellanox.com>
Thu, 2 Nov 2017 13:22:24 +0000 (15:22 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 19:42:04 +0000 (14:42 -0500)
commit9901abf583683e58f95f822da63cd0e32e7b2f0a
tree204e72434ea21e6c1e30855a9fc4ded68edb7696
parent2b621851acb34762ca893b2528823215e0d4b98c
IB/mlx4: Use optimal numbers of MTT entries

Optimize the device performance by assigning multiple physical pages,
which are contiguous, to a single MTT. As a result, the number of MTTs
is reduced and in turn save cache misses of MTTs.

Signed-off-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/mr.c