net/pcap: truncate packet if it is too large
[dpdk.git] / lib / librte_ethdev / rte_ethdev_pci.h
index 8ff4f6b..ccdbb46 100644 (file)
@@ -135,13 +135,6 @@ rte_eth_dev_pci_allocate(struct rte_pci_device *dev, size_t private_data_size)
 static inline void
 rte_eth_dev_pci_release(struct rte_eth_dev *eth_dev)
 {
-       if (rte_eal_process_type() != RTE_PROC_PRIMARY) {
-               eth_dev->device = NULL;
-               eth_dev->intr_handle = NULL;
-               rte_eth_dev_release_port_secondary(eth_dev);
-               return;
-       }
-
        eth_dev->device = NULL;
        eth_dev->intr_handle = NULL;
 
@@ -191,7 +184,7 @@ rte_eth_dev_pci_generic_remove(struct rte_pci_device *pci_dev,
 
        eth_dev = rte_eth_dev_allocated(pci_dev->device.name);
        if (!eth_dev)
-               return -ENODEV;
+               return 0;
 
        if (dev_uninit) {
                ret = dev_uninit(eth_dev);