IB/mlx4: Fix RSS QP type in creation verb
authorGuy Levi <guyle@mellanox.com>
Thu, 17 Aug 2017 12:50:46 +0000 (15:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 20:27:11 +0000 (16:27 -0400)
The mlx4 was designed to support QP type of MLX4_IB_QPT_RAW_PACKET.

Fixes: 3078f5f1bd8b ("IB/mlx4: Add support for RSS QP")
Signed-off-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/qp.c

index f7ee1792ba6dde1a2bc3540ac2ae750a2f4cec85..0d2923c2225ff438137207ca89dc87356cb62dd8 100644 (file)
@@ -748,7 +748,7 @@ static int create_qp_rss(struct mlx4_ib_dev *dev, struct ib_pd *ibpd,
        INIT_LIST_HEAD(&qp->gid_list);
        INIT_LIST_HEAD(&qp->steering_rules);
 
-       qp->mlx4_ib_qp_type = MLX4_IB_QPT_RAW_ETHERTYPE;
+       qp->mlx4_ib_qp_type = MLX4_IB_QPT_RAW_PACKET;
        qp->state = IB_QPS_RESET;
 
        /* Set dummy send resources to be compatible with HV and PRM */