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

Function sfc_unprobe

dpdk/drivers/net/sfc/sfc.c:1346–1379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1344}
1345
1346void
1347sfc_unprobe(struct sfc_adapter *sa)
1348{
1349 efx_nic_t *enp = sa->nic;
1350
1351 sfc_log_init(sa, "entry");
1352
1353 SFC_ASSERT(sfc_adapter_is_locked(sa));
1354
1355 sfc_log_init(sa, "unprobe nic");
1356 efx_nic_unprobe(enp);
1357
1358 sfc_mcdi_fini(sa);
1359
1360 /*
1361 * Make sure there is no pending alarm to restart since we are
1362 * going to free device private which is passed as the callback
1363 * opaque data. A new alarm cannot be scheduled since MCDI is
1364 * shut down.
1365 */
1366 rte_eal_alarm_cancel(sfc_restart_if_required, sa);
1367
1368 sfc_mae_clear_switch_port(sa->mae.switch_domain_id,
1369 sa->mae.switch_port_id);
1370
1371 sfc_log_init(sa, "destroy nic");
1372 sa->nic = NULL;
1373 efx_nic_destroy(enp);
1374
1375 sfc_mem_bar_fini(sa);
1376
1377 sfc_flow_fini(sa);
1378 sa->state = SFC_ETHDEV_UNINITIALIZED;
1379}
1380
1381uint32_t
1382sfc_register_logtype(const struct rte_pci_addr *pci_addr,

Callers 2

sfc_dev_closeFunction · 0.85
sfc_eth_dev_initFunction · 0.85

Calls 7

efx_nic_unprobeFunction · 0.85
sfc_mcdi_finiFunction · 0.85
efx_nic_destroyFunction · 0.85
sfc_mem_bar_finiFunction · 0.85
sfc_flow_finiFunction · 0.85
rte_eal_alarm_cancelFunction · 0.50

Tested by

no test coverage detected