| 1628 | } |
| 1629 | |
| 1630 | static int |
| 1631 | pmd_pcap_remove(struct rte_vdev_device *dev) |
| 1632 | { |
| 1633 | struct rte_eth_dev *eth_dev = NULL; |
| 1634 | |
| 1635 | if (!dev) |
| 1636 | return -1; |
| 1637 | |
| 1638 | eth_dev = rte_eth_dev_allocated(rte_vdev_device_name(dev)); |
| 1639 | if (eth_dev == NULL) |
| 1640 | return 0; /* port already released */ |
| 1641 | |
| 1642 | eth_dev_close(eth_dev); |
| 1643 | rte_eth_dev_release_port(eth_dev); |
| 1644 | |
| 1645 | return 0; |
| 1646 | } |
| 1647 | |
| 1648 | static struct rte_vdev_driver pmd_pcap_drv = { |
| 1649 | .probe = pmd_pcap_probe, |
nothing calls this directly
no test coverage detected