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

Function eth_enic_dev_uninit

dpdk/drivers/net/enic/enic_ethdev.c:1292–1306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1290}
1291
1292static int eth_enic_dev_uninit(struct rte_eth_dev *eth_dev)
1293{
1294 struct enic *enic = pmd_priv(eth_dev);
1295 int err;
1296
1297 ENICPMD_FUNC_TRACE();
1298 eth_dev->device = NULL;
1299 eth_dev->intr_handle = NULL;
1300 if (rte_eal_process_type() != RTE_PROC_PRIMARY)
1301 return 0;
1302 err = rte_eth_switch_domain_free(enic->switch_domain_id);
1303 if (err)
1304 ENICPMD_LOG(WARNING, "failed to free switch domain: %d", err);
1305 return 0;
1306}
1307
1308static int eth_enic_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
1309 struct rte_pci_device *pci_dev)

Callers

nothing calls this directly

Calls 3

pmd_privFunction · 0.85
rte_eal_process_typeFunction · 0.85

Tested by

no test coverage detected