| 521 | } |
| 522 | |
| 523 | static bool |
| 524 | rte_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 | |
| 542 | unsigned int |
| 543 | rte_reorder_min_seqn_set(struct rte_reorder_buffer *b, rte_reorder_seqn_t min_seqn) |
no outgoing calls
no test coverage detected