Skip to content

Commit c02b7a9

Browse files
Joao Pintodavem330
authored andcommitted
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: Arnd Bergmann <[email protected]> Signed-off-by: Joao Pinto <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8f917bb commit c02b7a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4103,8 +4103,8 @@ int stmmac_dvr_probe(struct device *device,
41034103
goto error_hw_init;
41044104

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

41094109
ndev->netdev_ops = &stmmac_netdev_ops;
41104110

0 commit comments

Comments
 (0)