update Intel copyright years to 2014
[dpdk.git] / lib / librte_eal / common / eal_common_whitelist.c
index ddd4a6f..0592757 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  * 
- *   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
  *   All rights reserved.
  * 
  *   Redistribution and use in source and binary forms, with or without
 #include <rte_debug.h>
 #include <rte_pci.h>
 #include <ctype.h>
+#ifdef RTE_LIBRTE_PMD_RING
+#include <rte_eth_ring.h>
+#endif
+#ifdef RTE_LIBRTE_PMD_PCAP
+#include <rte_eth_pcap.h>
+#endif
 #include "eal_private.h"
 
 static char dev_list_str[4096];
@@ -91,6 +97,12 @@ is_valid_wl_entry(const char *device_str, size_t dev_buf_len)
 {
 #define NUM_PREFIXES (sizeof(non_pci_prefixes)/sizeof(non_pci_prefixes[0]))
        static const char *non_pci_prefixes[] = {
+#ifdef  RTE_LIBRTE_PMD_RING
+                       RTE_ETH_RING_PARAM_NAME,
+#endif
+#ifdef RTE_LIBRTE_PMD_PCAP
+                       RTE_ETH_PCAP_PARAM_NAME,
+#endif
                        "-nodev-" /* dummy value to prevent compiler warnings */
        };
        static uint8_t prefix_counts[NUM_PREFIXES] = {0};