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

Function ifmp_ring_is_idle

freebsd/net/mp_ring.c:525–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525int
526ifmp_ring_is_idle(struct ifmp_ring *r)
527{
528 union ring_state s;
529
530 s.state = r->state;
531 if (s.pidx_head == s.pidx_tail && s.pidx_tail == s.cidx &&
532 s.flags == IDLE)
533 return (1);
534
535 return (0);
536}
537
538int
539ifmp_ring_is_stalled(struct ifmp_ring *r)

Callers 1

iflib_if_qflushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected