IB/mlx5: Add CREATE_PSV/DESTROY_PSV for devx interface
authorMax Gurtovoy <maxg@mellanox.com>
Tue, 23 Jul 2019 07:04:12 +0000 (10:04 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 17:24:06 +0000 (14:24 -0300)
commit8b38c538d460f46680d0fb8524efa15a8652b2d1
tree2bacc7e021a47da4e696bc1cfa687fbca8960ef9
parent1d2fedd8561dc469a7503855ee602f4bb3eccfa7
IB/mlx5: Add CREATE_PSV/DESTROY_PSV for devx interface

Limit the number of PSV's created through devx to 1, to create a symmetry
between create/destroy cmds. In the kernel, one can create up to 4 PSV's
using CREATE_PSV cmd but the destruction is one by one. Add a protection
for this a-symmetric definition for devx.

Link: https://lore.kernel.org/r/20190723070412.6385-1-leon@kernel.org
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c