{net, IB}/mlx5: Manage port association for multiport RoCE
[linux-2.6-block.git] / drivers / net / ethernet / mellanox / mlx5 / core / ipoib / ipoib.c
index d2a66dc4adc6d2933cfbc60c28cd49c67716a010..261b95d014a05df62d2eb457f320c23fa8e977da 100644 (file)
@@ -187,7 +187,7 @@ int mlx5i_create_underlay_qp(struct mlx5_core_dev *mdev, struct mlx5_core_qp *qp
                 MLX5_QP_ENHANCED_ULP_STATELESS_MODE);
 
        addr_path = MLX5_ADDR_OF(qpc, qpc, primary_address_path);
-       MLX5_SET(ads, addr_path, port, 1);
+       MLX5_SET(ads, addr_path, vhca_port_num, 1);
        MLX5_SET(ads, addr_path, grh, 1);
 
        ret = mlx5_core_create_qp(mdev, qp, in, inlen);