| 1290 | } |
| 1291 | |
| 1292 | static 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 | |
| 1308 | static int eth_enic_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, |
| 1309 | struct rte_pci_device *pci_dev) |
nothing calls this directly
no test coverage detected