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

Function nfp_pci_uninit

dpdk/drivers/net/nfp/nfp_ethdev.c:1643–1659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1641};
1642
1643static int
1644nfp_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
1661static int
1662eth_nfp_pci_remove(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