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

Function sw_qids_empty

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

Source from the content-addressed store, hash-verified

364}
365
366static int
367sw_qids_empty(struct sw_evdev *sw)
368{
369 unsigned int i, j;
370
371 for (i = 0; i < sw->qid_count; i++) {
372 for (j = 0; j < SW_IQS_MAX; j++) {
373 if (iq_count(&sw->qids[i].iq[j]))
374 return 0;
375 }
376 }
377
378 return 1;
379}
380
381static int
382sw_ports_empty(struct sw_evdev *sw)

Callers 1

sw_stopFunction · 0.85

Calls 1

iq_countFunction · 0.85

Tested by

no test coverage detected