]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
stmmac: pci: RX queue routing configuration
[karo-tx-linux.git] / drivers / net / ethernet / stmicro / stmmac / stmmac_pci.c
index 39be9677914559e18829c64a4df0fb31e35b4de5..2456e0a945ef63b7d5f3ce8ad0b43f5f53156014 100644 (file)
@@ -145,6 +145,17 @@ 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;
+
+       /* Disable Priority config by default */
+       plat->tx_queues_cfg[0].use_prio = false;
+       plat->rx_queues_cfg[0].use_prio = false;
+
+       /* Disable RX queues routing by default */
+       plat->rx_queues_cfg[0].pkt_route = 0x0;
+
        return 0;
 }