]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d30702fa1fee64c251789d809fa3ebe0599432f
treeced69add2f5bd363db8435fb514a6e25d3aca0b2
parent0ecc042eee9aff04f10df6eb828e73a4d4df2152
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