]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/testpmd.c
ethdev: fix device state on detach
[dpdk.git] / app / test-pmd / testpmd.c
index e754d12aae5e260770436e89670a72889bdfb621..91422181125dd1ddf575903e795fcbd8083ea6fd 100644 (file)
@@ -1836,7 +1836,6 @@ rmv_event_callback(void *arg)
        close_port(port_id);
        printf("removing device %s\n", dev->device->name);
        rte_eal_dev_detach(dev->device);
-       dev->state = RTE_ETH_DEV_UNUSED;
 }
 
 /* This function is used by the interrupt thread */