* Reads the value of an mbuf's refcnt. * @param m * Mbuf to read * @return * Reference count number. */
| 359 | * Reference count number. |
| 360 | */ |
| 361 | static inline uint16_t |
| 362 | rte_mbuf_refcnt_read(const struct rte_mbuf *m) |
| 363 | { |
| 364 | return rte_atomic_load_explicit(&m->refcnt, rte_memory_order_relaxed); |
| 365 | } |
| 366 | |
| 367 | /** |
| 368 | * Sets an mbuf's refcnt to a defined value. |
no outgoing calls