RDMA/mlx5: Use flags_en mechanism to mark QP created with WQE signature
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 27 Apr 2020 15:46:15 +0000 (18:46 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 28 Apr 2020 23:42:23 +0000 (20:42 -0300)
commitc95e6d53970254fa04a09c0fd79ae2cfa54cd1f5
treeca1160fa43183911f32254ffafe75142de182845
parent2978975ce7f16131ddf70468f0b189231e33086b
RDMA/mlx5: Use flags_en mechanism to mark QP created with WQE signature

MLX5_QP_FLAG_SIGNATURE is exposed to the users but in the kernel
the create_qp flow treated it differently from other MLX5_QP_FLAG_*s.
Fix it by ditching wq_sig boolean variable and use general flag_en
mechanism.

Link: https://lore.kernel.org/r/20200427154636.381474-16-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/mlx5_ib.h
drivers/infiniband/hw/mlx5/odp.c
drivers/infiniband/hw/mlx5/qp.c