Skip to content

Commit f81b456

Browse files
Leon Romanovskyjgunthorpe
authored andcommitted
RDMA/mlx5: Fix legacy IPoIB QP initialization
Legacy IPoIB sets IB_QP_CREATE_NETIF_QP QP create flag and because mlx5 doesn't use this flag, the process_create_flags() failed to create IPoIB QPs. Fixes: 2978975 ("RDMA/mlx5: Process create QP flags in one place") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent e18321a commit f81b456

File tree

1 file changed

+4
-0
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+4
-0
lines changed

drivers/infiniband/hw/mlx5/qp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,6 +2668,10 @@ static int process_create_flags(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp,
26682668
if (qp_type == IB_QPT_RAW_PACKET && attr->rwq_ind_tbl)
26692669
return (create_flags) ? -EINVAL : 0;
26702670

2671+
process_create_flag(dev, &create_flags, IB_QP_CREATE_NETIF_QP,
2672+
mlx5_get_flow_namespace(dev->mdev,
2673+
MLX5_FLOW_NAMESPACE_BYPASS),
2674+
qp);
26712675
process_create_flag(dev, &create_flags,
26722676
IB_QP_CREATE_INTEGRITY_EN,
26732677
MLX5_CAP_GEN(mdev, sho), qp);

0 commit comments

Comments
 (0)