]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/null/rte_eth_null.c
ethdev: get rid of device type
[dpdk.git] / drivers / net / null / rte_eth_null.c
index 367b884b2ba4be289fa353cecf5f334e57743934..42ec107b7ec461c31492d0424caa15e0a706feb0 100644 (file)
@@ -517,7 +517,7 @@ eth_dev_null_create(const char *name,
                goto error;
 
        /* reserve an ethdev entry */
-       eth_dev = rte_eth_dev_allocate(name, RTE_ETH_DEV_VIRTUAL);
+       eth_dev = rte_eth_dev_allocate(name);
        if (eth_dev == NULL)
                goto error;
 
@@ -692,5 +692,7 @@ static struct rte_driver pmd_null_drv = {
        .uninit = rte_pmd_null_devuninit,
 };
 
-PMD_REGISTER_DRIVER(pmd_null_drv, eth_null);
-DRIVER_REGISTER_PARAM_STRING(eth_null, "size=<int> copy=<int>");
+PMD_REGISTER_DRIVER(pmd_null_drv, net_null);
+DRIVER_REGISTER_PARAM_STRING(net_null,
+       "size=<int> "
+       "copy=<int>");