OSDN Git Service

IB/mlx5: Don't expose MR cache in switchdev mode
authorMark Bloch <markb@mellanox.com>
Mon, 22 Jan 2018 15:29:44 +0000 (15:29 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 23 Feb 2018 20:36:39 +0000 (12:36 -0800)
commit72afcf82477a58f40d748271a4a78755983203ef
treeced69add2f5bd363db8435fb514a6e25d3aca0b2
parent8e6efa3a31f4a81a4d8817d68110446df383d049
IB/mlx5: Don't expose MR cache in switchdev mode

When enabling many VFs and switching to switchdev mode, the total amount
of mkeys we try to allocate when loading representors is very large and
may cause timeouts on allocations, the same issues was observed on VFs
and we employ the same fix that was done for them. We avoid allocating
the full MR cache on load but still allow it to be manipulated once the
IB device is loaded.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/mr.c