Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c02b7a91 authored by Joao Pinto's avatar Joao Pinto Committed by David S. Miller
Browse files

net: stmmac: use netif_set_real_num_{rx,tx}_queues



In the submission of the lastest multiple buffer patch set, this fix was lost.
I am sending this patch to put it right again. The fix was originally proposed
by Arnd Bergmann.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarJoao Pinto <jpinto@synopsys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8f917bba
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4103,8 +4103,8 @@ int stmmac_dvr_probe(struct device *device,
		goto error_hw_init;

	/* Configure real RX and TX queues */
	ndev->real_num_rx_queues = priv->plat->rx_queues_to_use;
	ndev->real_num_tx_queues = priv->plat->tx_queues_to_use;
	netif_set_real_num_rx_queues(ndev, priv->plat->rx_queues_to_use);
	netif_set_real_num_tx_queues(ndev, priv->plat->tx_queues_to_use);

	ndev->netdev_ops = &stmmac_netdev_ops;