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

Function pmd_pcap_remove

dpdk/drivers/net/pcap/pcap_ethdev.c:1630–1646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1628}
1629
1630static int
1631pmd_pcap_remove(struct rte_vdev_device *dev)
1632{
1633 struct rte_eth_dev *eth_dev = NULL;
1634
1635 if (!dev)
1636 return -1;
1637
1638 eth_dev = rte_eth_dev_allocated(rte_vdev_device_name(dev));
1639 if (eth_dev == NULL)
1640 return 0; /* port already released */
1641
1642 eth_dev_close(eth_dev);
1643 rte_eth_dev_release_port(eth_dev);
1644
1645 return 0;
1646}
1647
1648static struct rte_vdev_driver pmd_pcap_drv = {
1649 .probe = pmd_pcap_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