RDMA/mlx5: Fix integrity enabled QP creation
authorMax Gurtovoy <maxg@mellanox.com>
Wed, 17 Jun 2020 13:02:30 +0000 (16:02 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 18 Jun 2020 18:14:57 +0000 (15:14 -0300)
commit9e0dc7b9e1cbc9cd0dc4ab2377c0536d4b18bedc
tree3366c7f77cea8786a8b8e6758258fc83b53471be
parent2c0f5292d5358c2c5576146071d641110c3c1612
RDMA/mlx5: Fix integrity enabled QP creation

create_flags checks was refactored and broke the creation on integrity
enabled QPs and actually broke the NVMe/RDMA and iSER ULP's when using
mlx5 driven devices.

Fixes: 2978975ce7f1 ("RDMA/mlx5: Process create QP flags in one place")
Link: https://lore.kernel.org/r/20200617130230.2846915-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/qp.c