| 1763 | } |
| 1764 | |
| 1765 | static int eth_cxgbe_dev_uninit(struct rte_eth_dev *eth_dev) |
| 1766 | { |
| 1767 | struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev); |
| 1768 | uint16_t port_id; |
| 1769 | int err = 0; |
| 1770 | |
| 1771 | /* Free up other ports and all resources */ |
| 1772 | RTE_ETH_FOREACH_DEV_OF(port_id, &pci_dev->device) |
| 1773 | err |= rte_eth_dev_close(port_id); |
| 1774 | |
| 1775 | return err == 0 ? 0 : -EIO; |
| 1776 | } |
| 1777 | |
| 1778 | static int eth_cxgbe_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, |
| 1779 | struct rte_pci_device *pci_dev) |
nothing calls this directly
no test coverage detected