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

Function sfc_restart

dpdk/drivers/net/sfc/sfc.c:645–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643}
644
645static int
646sfc_restart(struct sfc_adapter *sa)
647{
648 int rc;
649
650 SFC_ASSERT(sfc_adapter_is_locked(sa));
651
652 if (sa->state != SFC_ETHDEV_STARTED)
653 return EINVAL;
654
655 sfc_stop(sa);
656
657 rc = sfc_start(sa);
658 if (rc != 0)
659 sfc_err(sa, "restart failed");
660
661 return rc;
662}
663
664static void
665sfc_restart_if_required(void *arg)

Callers 1

sfc_restart_if_requiredFunction · 0.85

Calls 2

sfc_stopFunction · 0.85
sfc_startFunction · 0.85

Tested by

no test coverage detected