/*-
* BSD LICENSE
*
- * Copyright(c) 2010-2012 Intel Corporation. All rights reserved.
+ * Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * version: DPDK.L.1.2.3-3
*/
#ifndef _INIT_DRIVERS_H_
static inline int
init_drivers(void)
{
- if (
-#ifdef RTE_LIBRTE_IGB_PMD
- (rte_igb_pmd_init() < 0) ||
-#endif
-#ifdef RTE_LIBRTE_IXGBE_PMD
- (rte_ixgbe_pmd_init() < 0) ||
-#endif
- (rte_eal_pci_probe() < 0 ))
+ if (rte_pmd_init_all() < 0 || rte_eal_pci_probe() < 0)
return -1;
return 0;