git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update copyright date to 2013
[dpdk.git]
/
examples
/
multi_process
/
client_server_mp
/
shared
/
init_drivers.h
diff --git
a/examples/multi_process/client_server_mp/shared/init_drivers.h
b/examples/multi_process/client_server_mp/shared/init_drivers.h
index
658c841
..
e9b3ca1
100644
(file)
--- a/
examples/multi_process/client_server_mp/shared/init_drivers.h
+++ b/
examples/multi_process/client_server_mp/shared/init_drivers.h
@@
-1,7
+1,7
@@
/*-
* BSD LICENSE
*
/*-
* BSD LICENSE
*
- * Copyright(c) 2010-201
2
Intel Corporation. All rights reserved.
+ * Copyright(c) 2010-201
3
Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* 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.
*
* (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_
*/
#ifndef _INIT_DRIVERS_H_
@@
-42,14
+41,7
@@
static inline int
init_drivers(void)
{
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;
return -1;
return 0;