| 1223 | } |
| 1224 | |
| 1225 | int |
| 1226 | eth_ionic_dev_remove(struct rte_device *rte_dev) |
| 1227 | { |
| 1228 | char name[RTE_ETH_NAME_MAX_LEN]; |
| 1229 | struct rte_eth_dev *eth_dev; |
| 1230 | int ret = 0; |
| 1231 | |
| 1232 | /* Adapter lookup is using the eth_dev name */ |
| 1233 | snprintf(name, sizeof(name), "%s_lif", rte_dev->name); |
| 1234 | |
| 1235 | eth_dev = rte_eth_dev_allocated(name); |
| 1236 | if (eth_dev) |
| 1237 | ret = rte_eth_dev_destroy(eth_dev, eth_ionic_dev_uninit); |
| 1238 | else |
| 1239 | IONIC_PRINT(DEBUG, "Cannot find device %s", rte_dev->name); |
| 1240 | |
| 1241 | return ret; |
| 1242 | } |
| 1243 | |
| 1244 | RTE_LOG_REGISTER_DEFAULT(ionic_logtype, NOTICE); |
no test coverage detected