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

Function rte_eth_dev_destroy

dpdk/lib/ethdev/ethdev_driver.c:356–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356int
357rte_eth_dev_destroy(struct rte_eth_dev *ethdev,
358 ethdev_uninit_t ethdev_uninit)
359{
360 int ret;
361
362 ethdev = rte_eth_dev_allocated(ethdev->data->name);
363 if (!ethdev)
364 return -ENODEV;
365
366 if (*ethdev_uninit == NULL)
367 return -EINVAL;
368
369 ret = ethdev_uninit(ethdev);
370 if (ret)
371 return ret;
372
373 return rte_eth_dev_release_port(ethdev);
374}
375
376struct rte_eth_dev *
377rte_eth_dev_get_by_name(const char *name)

Callers 6

ipn3ke_vswitch_removeFunction · 0.85
eth_ionic_dev_removeFunction · 0.85
eth_enic_pci_removeFunction · 0.85
sfc_eth_dev_pci_probeFunction · 0.85
bnxt_pci_removeFunction · 0.85

Calls 2

rte_eth_dev_allocatedFunction · 0.85
rte_eth_dev_release_portFunction · 0.85

Tested by

no test coverage detected