* Test if a ring is full. * * @param r * A pointer to the ring structure. * @return * - 1: The ring is full. * - 0: The ring is not full. */
| 531 | * - 0: The ring is not full. |
| 532 | */ |
| 533 | static inline int |
| 534 | rte_ring_full(const struct rte_ring *r) |
| 535 | { |
| 536 | return rte_ring_free_count(r) == 0; |
| 537 | } |
| 538 | |
| 539 | /** |
| 540 | * Test if a ring is empty. |