| 1744 | } |
| 1745 | |
| 1746 | static int |
| 1747 | rte_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 | |
| 1766 | static struct rte_vdev_driver pmd_vhost_drv = { |
| 1767 | .probe = rte_pmd_vhost_probe, |
nothing calls this directly
no test coverage detected