MCPcopy Create free account
hub / github.com/F-Stack/f-stack / eth_hn_remove

Function eth_hn_remove

dpdk/drivers/net/netvsc/hn_ethdev.c:1455–1473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1453}
1454
1455static 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 */
1476static const rte_uuid_t hn_net_ids[] = {

Callers

nothing calls this directly

Calls 4

rte_eth_dev_allocatedFunction · 0.85
eth_hn_dev_uninitFunction · 0.85
eth_dev_vmbus_releaseFunction · 0.85

Tested by

no test coverage detected