Unverified Commit e098ab36 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8841 v2 IB/IPoIB: Fix legacy IPoIB due to wrong number of queues

parents 7d8d86d9 8c1edb14
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2188,6 +2188,14 @@ int ipoib_intf_init(struct ib_device *hca, u8 port, const char *name,
		rn->attach_mcast = ipoib_mcast_attach;
		rn->detach_mcast = ipoib_mcast_detach;
		rn->hca = hca;

		rc = netif_set_real_num_tx_queues(dev, 1);
		if (rc)
			goto out;

		rc = netif_set_real_num_rx_queues(dev, 1);
		if (rc)
			goto out;
	}

	priv->rn_ops = dev->netdev_ops;