OSDN Git Service

RDMA/mlx5: Allow providing extra scatter CQE QP flag
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 28 Jul 2020 12:02:55 +0000 (15:02 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 29 Jul 2020 17:19:01 +0000 (14:19 -0300)
commit81530ab08ef002f90b7dc68f5a69816b0e3be803
tree6a7102e9e9413cd24b4dca7468fce1f143a55e3b
parent5351a56b1a4ceafd7a17ebfdf3cda430cdfd365d
RDMA/mlx5: Allow providing extra scatter CQE QP flag

Scatter CQE feature relies on two flags MLX5_QP_FLAG_SCATTER_CQE and
MLX5_QP_FLAG_ALLOW_SCATTER_CQE, both of them can be provided without
relation to device capability.

Relax global validity check to allow MLX5_QP_FLAG_ALLOW_SCATTER_CQE QP
flag.

Existing user applications are failing on this new validity check.

Fixes: 90ecb37a751b ("RDMA/mlx5: Change scatter CQE flag to be set like other vendor flags")
Fixes: 37518fa49f76 ("RDMA/mlx5: Process all vendor flags in one place")
Link: https://lore.kernel.org/r/20200728120255.805733-1-leon@kernel.org
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/qp.c