aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Pinto <Joao.Pinto@synopsys.com>2017-04-10 11:32:14 +0100
committerDavid S. Miller <davem@davemloft.net>2017-04-11 22:20:52 -0400
commitc02b7a9145512e9995e875faf8c9df4147870bbf (patch)
tree49ee6c8fedaf9c62e2c83f12db8b165945ee59db
parentbpf: pass sk to helper functions (diff)
downloadlinux-dev-c02b7a9145512e9995e875faf8c9df4147870bbf.tar.xz
linux-dev-c02b7a9145512e9995e875faf8c9df4147870bbf.zip
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 <arnd@arndb.de> Signed-off-by: Joao Pinto <jpinto@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index a89f76b27ea2..85f315e01c1d 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -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;