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

Function rte_reorder_is_empty

dpdk/lib/reorder/rte_reorder.c:523–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523static bool
524rte_reorder_is_empty(const struct rte_reorder_buffer *b)
525{
526 const struct cir_buffer *order_buf = &b->order_buf, *ready_buf = &b->ready_buf;
527 unsigned int i;
528
529 /* Ready buffer does not have gaps */
530 if (ready_buf->tail != ready_buf->head)
531 return false;
532
533 /* Order buffer could have gaps, iterate */
534 for (i = 0; i < order_buf->size; i++) {
535 if (order_buf->entries[i] != NULL)
536 return false;
537 }
538
539 return true;
540}
541
542unsigned int
543rte_reorder_min_seqn_set(struct rte_reorder_buffer *b, rte_reorder_seqn_t min_seqn)

Callers 1

rte_reorder_min_seqn_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected