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

Function pmd_pfe_remove

dpdk/drivers/net/pfe/pfe_ethdev.c:1116–1139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114}
1115
1116static int
1117pmd_pfe_remove(struct rte_vdev_device *vdev)
1118{
1119 const char *name;
1120 struct rte_eth_dev *eth_dev = NULL;
1121 int ret = 0;
1122
1123 name = rte_vdev_device_name(vdev);
1124 if (name == NULL)
1125 return -EINVAL;
1126
1127 PFE_PMD_INFO("Closing eventdev sw device %s", name);
1128
1129 if (!g_pfe)
1130 return 0;
1131
1132 eth_dev = rte_eth_dev_allocated(name);
1133 if (eth_dev) {
1134 pfe_eth_close(eth_dev);
1135 ret = rte_eth_dev_release_port(eth_dev);
1136 }
1137
1138 return ret;
1139}
1140
1141static
1142struct rte_vdev_driver pmd_pfe_drv = {

Callers

nothing calls this directly

Calls 4

rte_vdev_device_nameFunction · 0.85
rte_eth_dev_allocatedFunction · 0.85
pfe_eth_closeFunction · 0.85
rte_eth_dev_release_portFunction · 0.85

Tested by

no test coverage detected