numam-dpdk/lib/librte_mbuf
Olivier Matz f20b50b946 mbuf: optimize refcnt update
In __rte_pktmbuf_prefree_seg(), there was an optimization to avoid using
a costly atomic operation when updating the mbuf reference counter if
its value is 1. Indeed, it means that we are the only owner of the mbuf,
and therefore nobody can change it at the same time.

We can generalize this optimization directly in rte_mbuf_refcnt_update()
so the other callers of this function, like rte_pktmbuf_attach(), can
also take advantage of this optimization.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2015-06-12 16:16:50 +02:00
..
Makefile mk: add library version extension 2015-02-03 16:56:58 +01:00
rte_mbuf_version.map mbuf: introduce a new helper to create a pool 2015-04-28 11:34:04 +02:00
rte_mbuf.c mbuf: fix cloning with private mbuf data 2015-04-28 11:34:10 +02:00
rte_mbuf.h mbuf: optimize refcnt update 2015-06-12 16:16:50 +02:00