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

Function rte_pmd_null_remove

dpdk/drivers/net/null/rte_eth_null.c:750–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750static int
751rte_pmd_null_remove(struct rte_vdev_device *dev)
752{
753 struct rte_eth_dev *eth_dev = NULL;
754
755 if (!dev)
756 return -EINVAL;
757
758 /* find the ethdev entry */
759 eth_dev = rte_eth_dev_allocated(rte_vdev_device_name(dev));
760 if (eth_dev == NULL)
761 return 0; /* port already released */
762
763 eth_dev_close(eth_dev);
764 rte_eth_dev_release_port(eth_dev);
765
766 return 0;
767}
768
769static struct rte_vdev_driver pmd_null_drv = {
770 .probe = rte_pmd_null_probe,

Callers

nothing calls this directly

Calls 4

rte_eth_dev_allocatedFunction · 0.85
rte_vdev_device_nameFunction · 0.85
rte_eth_dev_release_portFunction · 0.85
eth_dev_closeFunction · 0.70

Tested by

no test coverage detected