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

Function sfc_restart_if_required

dpdk/drivers/net/sfc/sfc.c:664–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664static void
665sfc_restart_if_required(void *arg)
666{
667 struct sfc_adapter *sa = arg;
668
669 /* If restart is scheduled, clear the flag and do it */
670 if (rte_atomic32_cmpset((volatile uint32_t *)&sa->restart_required,
671 1, 0)) {
672 sfc_adapter_lock(sa);
673 if (sa->state == SFC_ETHDEV_STARTED)
674 (void)sfc_restart(sa);
675 sfc_adapter_unlock(sa);
676 }
677}
678
679void
680sfc_schedule_restart(struct sfc_adapter *sa)

Callers

nothing calls this directly

Calls 2

sfc_restartFunction · 0.85
rte_atomic32_cmpsetFunction · 0.50

Tested by

no test coverage detected