summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
diff options
context:
space:
mode:
authorJoao Pinto2017-03-13 11:07:07 +0100
committerDavid S. Miller2017-03-13 20:13:20 +0100
commit26d6851fd24ed5d88580d66b4c8384947d5ca29b (patch)
tree48b184f9925f8dff956e047df06b08f1e8b8b818 /drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
parentsch_tbf: Remove bogus semicolon in if() conditional. (diff)
downloadkernel-qcow2-linux-26d6851fd24ed5d88580d66b4c8384947d5ca29b.tar.gz
kernel-qcow2-linux-26d6851fd24ed5d88580d66b4c8384947d5ca29b.tar.xz
kernel-qcow2-linux-26d6851fd24ed5d88580d66b4c8384947d5ca29b.zip
net: stmmac: set default number of rx and tx queues in stmmac_pci
This patch configures default number of RX and TX queues when using the pci glue driver. Signed-off-by: Joao Pinto <jpinto@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
index 5c9e462276b9..cea472a7c335 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
@@ -88,6 +88,10 @@ static void stmmac_default_data(struct plat_stmmacenet_data *plat)
/* Set the maxmtu to a default of JUMBO_LEN */
plat->maxmtu = JUMBO_LEN;
+
+ /* Set default number of RX and TX queues to use */
+ plat->tx_queues_to_use = 1;
+ plat->rx_queues_to_use = 1;
}
static int quark_default_data(struct plat_stmmacenet_data *plat,