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

Function pmd_remove

dpdk/drivers/net/softnic/rte_eth_softnic.c:486–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486static int
487pmd_remove(struct rte_vdev_device *vdev)
488{
489 struct rte_eth_dev *dev = NULL;
490
491 if (!vdev)
492 return -EINVAL;
493
494 PMD_LOG(INFO, "Removing device \"%s\"", rte_vdev_device_name(vdev));
495
496 /* Find the ethdev entry */
497 dev = rte_eth_dev_allocated(rte_vdev_device_name(vdev));
498 if (dev == NULL)
499 return 0; /* port already released */
500
501 pmd_dev_close(dev);
502 rte_eth_dev_release_port(dev);
503
504 return 0;
505}
506
507static struct rte_vdev_driver pmd_softnic_drv = {
508 .probe = pmd_probe,

Callers

nothing calls this directly

Calls 4

rte_vdev_device_nameFunction · 0.85
rte_eth_dev_allocatedFunction · 0.85
pmd_dev_closeFunction · 0.85
rte_eth_dev_release_portFunction · 0.85

Tested by

no test coverage detected