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

Function sw_ports_empty

dpdk/drivers/event/sw/sw_evdev.c:381–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381static int
382sw_ports_empty(struct sw_evdev *sw)
383{
384 unsigned int i;
385
386 for (i = 0; i < sw->port_count; i++) {
387 if ((rte_event_ring_count(sw->ports[i].rx_worker_ring)) ||
388 rte_event_ring_count(sw->ports[i].cq_worker_ring))
389 return 0;
390 }
391
392 return 1;
393}
394
395static void
396sw_drain_ports(struct rte_eventdev *dev)

Callers 1

sw_stopFunction · 0.85

Calls 1

rte_event_ring_countFunction · 0.85

Tested by

no test coverage detected