From: Leon Romanovsky <leonro@xxxxxxxxxxxx> Hi, This is a fix to restrict opening any other QP types except RAW_PACKET if we are using raw ETH profile. Thanks Mark Bloch (2): RDMA/mlx5: Assign profile before calling stages RDMA/mlx5: Allow only raw Ethernet QPs when RoCE isn't enabled drivers/infiniband/hw/mlx5/ib_rep.h | 2 +- drivers/infiniband/hw/mlx5/main.c | 3 ++- drivers/infiniband/hw/mlx5/qp.c | 12 +++++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) -- 2.26.2