update copyright date to 2013
[dpdk.git] / examples / multi_process / client_server_mp / shared / init_drivers.h
index 658c841..e9b3ca1 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   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 
@@ -30,7 +30,6 @@
  *   (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;