]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Process create QP flags in one place
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 27 Apr 2020 15:46:14 +0000 (18:46 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 28 Apr 2020 23:42:23 +0000 (20:42 -0300)
commit8d1074cfe43969793c5e09bab9be51781f50ce5c
tree13e7ef4b071515fdd36538eece077ebaa2dd88fd
parent409d25be6f36aa41a5efe33464225ba0c3f133e1
RDMA/mlx5: Process create QP flags in one place

create_flags is checked in too many places and scattered across all
the code, consolidate all the checks inside one function, so we will
be easily see the flow. As part of such change, delete unreachable code,
because IB/core is responsible sanitize the input.

Link: https://lore.kernel.org/r/20200427154636.381474-15-leon@kernel.org
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c