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

Function rte_pmd_vhost_remove

dpdk/drivers/net/vhost/rte_eth_vhost.c:1746–1764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1744}
1745
1746static int
1747rte_pmd_vhost_remove(struct rte_vdev_device *dev)
1748{
1749 const char *name;
1750 struct rte_eth_dev *eth_dev = NULL;
1751
1752 name = rte_vdev_device_name(dev);
1753 VHOST_LOG(INFO, "Un-Initializing pmd_vhost for %s\n", name);
1754
1755 /* find an ethdev entry */
1756 eth_dev = rte_eth_dev_allocated(name);
1757 if (eth_dev == NULL)
1758 return 0;
1759
1760 eth_dev_close(eth_dev);
1761 rte_eth_dev_release_port(eth_dev);
1762
1763 return 0;
1764}
1765
1766static struct rte_vdev_driver pmd_vhost_drv = {
1767 .probe = rte_pmd_vhost_probe,

Callers

nothing calls this directly

Calls 4

rte_vdev_device_nameFunction · 0.85
rte_eth_dev_allocatedFunction · 0.85
rte_eth_dev_release_portFunction · 0.85
eth_dev_closeFunction · 0.70

Tested by

no test coverage detected