]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_ether/rte_ethdev.c
ethdev: remove useless check in detach capability
[dpdk.git] / lib / librte_ether / rte_ethdev.c
index 8c365ed64cea2b333e660f1798214790bc6d787c..805ef639c19f37a15d906c9e4c656a4ce49a2bd7 100644 (file)
@@ -367,16 +367,6 @@ rte_eth_dev_is_detachable(uint8_t port_id)
 
        RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -EINVAL);
 
-       switch (rte_eth_devices[port_id].data->kdrv) {
-       case RTE_KDRV_IGB_UIO:
-       case RTE_KDRV_UIO_GENERIC:
-       case RTE_KDRV_NIC_UIO:
-       case RTE_KDRV_NONE:
-       case RTE_KDRV_VFIO:
-               break;
-       default:
-               return -ENOTSUP;
-       }
        dev_flags = rte_eth_devices[port_id].data->dev_flags;
        if ((dev_flags & RTE_ETH_DEV_DETACHABLE) &&
                (!(dev_flags & RTE_ETH_DEV_BONDED_SLAVE)))