4b7284a71f
Testing if the ring is empty is as simple as comparing the producer and consumer pointers. In theory, this optimization reduces the number of potential cache misses from 3 to 2 by not having to read r->mask in rte_ring_count(). The modification of this function were also discussed in the RFC here: https://mails.dpdk.org/archives/dev/2020-April/165752.html Signed-off-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
meson.build | ||
rte_ring_c11_mem.h | ||
rte_ring_core.h | ||
rte_ring_elem.h | ||
rte_ring_generic.h | ||
rte_ring_hts_c11_mem.h | ||
rte_ring_hts.h | ||
rte_ring_peek_c11_mem.h | ||
rte_ring_peek.h | ||
rte_ring_rts_c11_mem.h | ||
rte_ring_rts.h | ||
rte_ring_version.map | ||
rte_ring.c | ||
rte_ring.h |