]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2469b15ca081d8ad2d72b362ceed1d04103e6d5
tree2c9f75da01417eb07cbeadabec2d970c0901c3ce
parent1de2ede6db8ac16f9715dbd507299fda589db4e3
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: 7c120481afcc ("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