| 1641 | }; |
| 1642 | |
| 1643 | static int |
| 1644 | nfp_pci_uninit(struct rte_eth_dev *eth_dev) |
| 1645 | { |
| 1646 | uint16_t port_id; |
| 1647 | struct rte_pci_device *pci_dev; |
| 1648 | |
| 1649 | pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev); |
| 1650 | |
| 1651 | /* Free up all physical ports under PF */ |
| 1652 | RTE_ETH_FOREACH_DEV_OF(port_id, &pci_dev->device) |
| 1653 | rte_eth_dev_close(port_id); |
| 1654 | /* |
| 1655 | * Ports can be closed and freed but hotplugging is not |
| 1656 | * currently supported. |
| 1657 | */ |
| 1658 | return -ENOTSUP; |
| 1659 | } |
| 1660 | |
| 1661 | static int |
| 1662 | eth_nfp_pci_remove(struct rte_pci_device *pci_dev) |
nothing calls this directly
no test coverage detected