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)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 30 Apr 2020 21:45:46 +0000 (18:45 -0300)
commit0eacc574aae7300bf46c10c7116c3ba5825505b7
tree2c9f75da01417eb07cbeadabec2d970c0901c3ce
parent968f0b6f9c01bdf772a4c04ee1fe08971d65af14
RDMA/mlx5: Verify that QP is created with RQ or SQ

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>
drivers/infiniband/hw/mlx5/qp.c