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

Function sfc_close

dpdk/drivers/net/sfc/sfc.c:757–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755}
756
757void
758sfc_close(struct sfc_adapter *sa)
759{
760 sfc_log_init(sa, "entry");
761
762 SFC_ASSERT(sfc_adapter_is_locked(sa));
763
764 SFC_ASSERT(sa->state == SFC_ETHDEV_CONFIGURED);
765 sa->state = SFC_ETHDEV_CLOSING;
766
767 sfc_sw_xstats_close(sa);
768 sfc_tx_close(sa);
769 sfc_rx_close(sa);
770 sfc_port_close(sa);
771 sfc_intr_close(sa);
772
773 sa->state = SFC_ETHDEV_INITIALIZED;
774 sfc_log_init(sa, "done");
775}
776
777static int
778sfc_mem_bar_init(struct sfc_adapter *sa, const efx_bar_region_t *mem_ebrp)

Callers 1

sfc_dev_closeFunction · 0.85

Calls 5

sfc_sw_xstats_closeFunction · 0.85
sfc_tx_closeFunction · 0.85
sfc_rx_closeFunction · 0.85
sfc_port_closeFunction · 0.85
sfc_intr_closeFunction · 0.85

Tested by

no test coverage detected