X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Feal_common_whitelist.c;h=0592757c120f918c7ad38930bf09cd2162e53f4c;hb=e9d48c0072d36eb6423b45fba4ec49d0def6c36f;hp=ddd4a6f2c8f1919b154a99c76bb0675e3e664428;hpb=2c502225c64c79b070997ff72e7963b1da7b2ec3;p=dpdk.git diff --git a/lib/librte_eal/common/eal_common_whitelist.c b/lib/librte_eal/common/eal_common_whitelist.c index ddd4a6f2c8..0592757c12 100644 --- a/lib/librte_eal/common/eal_common_whitelist.c +++ b/lib/librte_eal/common/eal_common_whitelist.c @@ -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 @@ -45,6 +45,12 @@ #include #include #include +#ifdef RTE_LIBRTE_PMD_RING +#include +#endif +#ifdef RTE_LIBRTE_PMD_PCAP +#include +#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};