RDMA/mlx5: Verify that QP is created with RQ or SQ
authorAharon Landau <aharonl@mellanox.com>
Mon, 27 Apr 2020 15:46:36 +0000 (18:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:34:13 +0000 (09:34 +0200)
commita516f0cf396bc72d7338eebe3b4757efda6ffb1b
tree213e0cd31a86d872dd239ad54d4a72d54c5a4ac4
parent7c0eb53b7ed4d4f568dc0f007dd955f06d78abad
RDMA/mlx5: Verify that QP is created with RQ or SQ

commit 0eacc574aae7300bf46c10c7116c3ba5825505b7 upstream.

RAW packet QP and underlay QP must be created with either
RQ or SQ, check that.

Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Link: https://lore.kernel.org/r/20200427154636.381474-37-leon@kernel.org
Signed-off-by: Aharon Landau <aharonl@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx5/qp.c