RDMA/core: Align write and ioctl checks of QP types
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 26 Sep 2020 10:24:47 +0000 (13:24 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 29 Sep 2020 16:11:06 +0000 (13:11 -0300)
commit5807bb32055bb8badc44bf835ebc376415cd0a17
treecba5cd28b3298a6eed823a7b104e7a43e19c3d88
parent8fd3cd2ae5a09ca1caed4b3990e084cb95bf55af
RDMA/core: Align write and ioctl checks of QP types

The ioctl flow checks that the user provides only a supported list of QP
types, while write flow didn't do it and relied on the driver to check
it. Align those flows to fail as early as possible.

Link: https://lore.kernel.org/r/20200926102450.2966017-8-leon@kernel.org
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_cmd.c