RDMA/mlx5: Fix check for supported user flags when creating a QP
authorMark Bloch <markb@mellanox.com>
Tue, 15 Jan 2019 14:45:32 +0000 (16:45 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 21 Jan 2019 21:20:08 +0000 (14:20 -0700)
commit8af526e035357d2df1d7cacc51bcde0a5d9f9f9f
tree8c75c6825afb3c1ac442f0aa01db32f8ab90366d
parent49a57857aeea06ca831043acbb0fa5e0f50602fd
RDMA/mlx5: Fix check for supported user flags when creating a QP

When the flags verification was added two flags were missed from the
check:
 * MLX5_QP_FLAG_TIR_ALLOW_SELF_LB_UC
 * MLX5_QP_FLAG_TIR_ALLOW_SELF_LB_MC

This causes user applications that were using these flags to break.

Fixes: 2e43bb31b8df ("IB/mlx5: Verify that driver supports user flags")
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c