]> git.droids-corp.org - dpdk.git/blobdiff - app/test/virtual_pmd.c
ethdev: add device type
[dpdk.git] / app / test / virtual_pmd.c
index 785bccc605834be6332f4380ffc4f1b8a79ffdb4..9b07ab1f0d31a16a1dd2d17f868d059c75484cd3 100644 (file)
@@ -580,7 +580,7 @@ virtual_ethdev_create(const char *name, struct ether_addr *mac_addr,
                goto err;
 
        /* reserve an ethdev entry */
-       eth_dev = rte_eth_dev_allocate(name);
+       eth_dev = rte_eth_dev_allocate(name, RTE_ETH_DEV_PCI);
        if (eth_dev == NULL)
                goto err;