| 1453 | } |
| 1454 | |
| 1455 | static int eth_hn_remove(struct rte_vmbus_device *dev) |
| 1456 | { |
| 1457 | struct rte_eth_dev *eth_dev; |
| 1458 | int ret; |
| 1459 | |
| 1460 | PMD_INIT_FUNC_TRACE(); |
| 1461 | |
| 1462 | eth_dev = rte_eth_dev_allocated(dev->device.name); |
| 1463 | if (!eth_dev) |
| 1464 | return 0; /* port already released */ |
| 1465 | |
| 1466 | ret = eth_hn_dev_uninit(eth_dev); |
| 1467 | if (ret) |
| 1468 | return ret; |
| 1469 | |
| 1470 | eth_dev_vmbus_release(eth_dev); |
| 1471 | rte_dev_event_monitor_stop(); |
| 1472 | return 0; |
| 1473 | } |
| 1474 | |
| 1475 | /* Network device GUID */ |
| 1476 | static const rte_uuid_t hn_net_ids[] = { |
nothing calls this directly
no test coverage detected