]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/testpmd.c
ethdev: use device handle to detach
[dpdk.git] / app / test-pmd / testpmd.c
index b3ad83b1eea3a1ef091c3a0ff750eda2d2082963..0a23d823e544f6b319557d759bf1369af866d593 100644 (file)
@@ -1824,7 +1824,7 @@ rmv_event_callback(void *arg)
        else if (da->type == RTE_DEVTYPE_WHITELISTED_PCI)
                rte_pci_device_name(&da->pci.addr, name, sizeof(name));
        printf("removing device %s\n", name);
-       rte_eal_dev_detach(name);
+       rte_eal_dev_detach(dev->device);
        dev->state = RTE_ETH_DEV_UNUSED;
 }