]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
stmmac: pci: set default number of rx and tx queues
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 8 May 2017 14:14:19 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 May 2017 19:15:02 +0000 (15:15 -0400)
The commit 26d6851fd24e

("net: stmmac: set default number of rx and tx queues in stmmac_pci")

missed Intel Quark configuration. Append it here.

Fixes: 26d6851fd24e ("net: stmmac: set default number of rx and tx queues in stmmac_pci")
Cc: Joao Pinto <Joao.Pinto@synopsys.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Joao Pinto <jpinto@synopsys.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c

index 39be9677914559e18829c64a4df0fb31e35b4de5..ae3e836f9bb664c0c4d9e116cbd57106935c9073 100644 (file)
@@ -145,6 +145,10 @@ static int quark_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;
+
        return 0;
 }