qconf->n_rx_queue == (unsigned)rx_queue_per_lcore) {
rx_lcore_id ++;
- qconf = &lcore_queue_conf[rx_lcore_id];
-
if (rx_lcore_id >= RTE_MAX_LCORE)
rte_exit(EXIT_FAILURE, "Not enough cores\n");
+
+ qconf = &lcore_queue_conf[rx_lcore_id];
}
qconf->rx_queue_list[qconf->n_rx_queue] = portid;
qconf->n_rx_queue++;
}
/* Initialise PMD driver(s) */
-#ifdef RTE_LIBRTE_IGB_PMD
- ret = rte_igb_pmd_init();
+ ret = rte_pmd_init_all();
if (ret < 0)
- rte_exit(EXIT_FAILURE, "Could not initialise igb PMD (%d)",
- ret);
-#endif
-#ifdef RTE_LIBRTE_IXGBE_PMD
- ret = rte_ixgbe_pmd_init();
- if (ret < 0)
- rte_exit(EXIT_FAILURE, "Could not initialise ixgbe PMD (%d)",
- ret);
-#endif
+ rte_exit(EXIT_FAILURE, "Could not initialise PMD (%d)", ret);
/* Scan PCI bus for recognised devices */
ret = rte_eal_pci_probe();