| 1114 | } |
| 1115 | |
| 1116 | static int |
| 1117 | pmd_pfe_remove(struct rte_vdev_device *vdev) |
| 1118 | { |
| 1119 | const char *name; |
| 1120 | struct rte_eth_dev *eth_dev = NULL; |
| 1121 | int ret = 0; |
| 1122 | |
| 1123 | name = rte_vdev_device_name(vdev); |
| 1124 | if (name == NULL) |
| 1125 | return -EINVAL; |
| 1126 | |
| 1127 | PFE_PMD_INFO("Closing eventdev sw device %s", name); |
| 1128 | |
| 1129 | if (!g_pfe) |
| 1130 | return 0; |
| 1131 | |
| 1132 | eth_dev = rte_eth_dev_allocated(name); |
| 1133 | if (eth_dev) { |
| 1134 | pfe_eth_close(eth_dev); |
| 1135 | ret = rte_eth_dev_release_port(eth_dev); |
| 1136 | } |
| 1137 | |
| 1138 | return ret; |
| 1139 | } |
| 1140 | |
| 1141 | static |
| 1142 | struct rte_vdev_driver pmd_pfe_drv = { |
nothing calls this directly
no test coverage detected