ethdev: add device type
[dpdk.git] / lib / librte_pmd_af_packet / rte_eth_af_packet.c
index 1ffe1cd..80e9bdf 100644 (file)
@@ -649,7 +649,7 @@ rte_pmd_init_internals(const char *name,
        }
 
        /* reserve an ethdev entry */
-       *eth_dev = rte_eth_dev_allocate(name);
+       *eth_dev = rte_eth_dev_allocate(name, RTE_ETH_DEV_VIRTUAL);
        if (*eth_dev == NULL)
                goto error;