]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: stmmac: set default number of rx and tx queues in stmmac_pci
authorJoao Pinto <Joao.Pinto@synopsys.com>
Mon, 13 Mar 2017 10:07:07 +0000 (10:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 19:13:20 +0000 (12:13 -0700)
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c

index 5c9e462276b9cbc25a8b5c2748988286fe17884f..cea472a7c335e561082d42827579697fa1bacbef 100644 (file)
@@ -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,