]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit140e64df1cb06923ca3dde2c9963625908b3a118
treecba5cd28b3298a6eed823a7b104e7a43e19c3d88
parenta0358c3ea23db1d5f96f168931b0394103fcd73b
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