| 748 | } |
| 749 | |
| 750 | static int |
| 751 | rte_pmd_null_remove(struct rte_vdev_device *dev) |
| 752 | { |
| 753 | struct rte_eth_dev *eth_dev = NULL; |
| 754 | |
| 755 | if (!dev) |
| 756 | return -EINVAL; |
| 757 | |
| 758 | /* find the ethdev entry */ |
| 759 | eth_dev = rte_eth_dev_allocated(rte_vdev_device_name(dev)); |
| 760 | if (eth_dev == NULL) |
| 761 | return 0; /* port already released */ |
| 762 | |
| 763 | eth_dev_close(eth_dev); |
| 764 | rte_eth_dev_release_port(eth_dev); |
| 765 | |
| 766 | return 0; |
| 767 | } |
| 768 | |
| 769 | static struct rte_vdev_driver pmd_null_drv = { |
| 770 | .probe = rte_pmd_null_probe, |
nothing calls this directly
no test coverage detected