MCPcopy Create free account
hub / github.com/F-Stack/f-stack / eth_cxgbe_dev_uninit

Function eth_cxgbe_dev_uninit

dpdk/drivers/net/cxgbe/cxgbe_ethdev.c:1765–1776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1763}
1764
1765static 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
1778static int eth_cxgbe_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
1779 struct rte_pci_device *pci_dev)

Callers

nothing calls this directly

Calls 1

rte_eth_dev_closeFunction · 0.85

Tested by

no test coverage detected