pcap: add new driver
[dpdk.git] / lib / librte_eal / common / eal_common_nonpci_devs.c
index e4ef25b..b5867f4 100644 (file)
@@ -36,6 +36,9 @@
 #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"
 
 struct device_init {
@@ -50,6 +53,12 @@ struct device_init dev_types[] = {
                        .dev_prefix = RTE_ETH_RING_PARAM_NAME,
                        .init_fn = rte_pmd_ring_init
                },
+#endif
+#ifdef RTE_LIBRTE_PMD_PCAP
+               {
+                       .dev_prefix = RTE_ETH_PCAP_PARAM_NAME,
+                       .init_fn = rte_pmd_pcap_init
+               },
 #endif
                {
                        .dev_prefix = "-nodev-",