* [dpdk-dev] rte_mbuf.h / rte_pktmbuf_prefree_seg / rte_atomic16
@ 2017-11-14 16:23 Hanoch Haim (hhaim)
0 siblings, 0 replies; only message in thread
From: Hanoch Haim (hhaim) @ 2017-11-14 16:23 UTC (permalink / raw)
To: dev; +Cc: Hanoch Haim (hhaim)
Hi All,
I've found a minor issue in the function "rte_pktmbuf_prefree_seg"
This code is located here :
/dpdk/lib/librte_mbuf/rte_mbuf.h
- } else if (rte_atomic16_add_return(&m->refcnt_atomic, -1) == 0)
Should be :
+ } else if (likely(rte_mbuf_refcnt_update(m, -1) == 0)) {
This depends on RTE_MBUF_REFCNT_ATOMIC define
Thanks,
Hanoh
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-14 16:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-14 16:23 [dpdk-dev] rte_mbuf.h / rte_pktmbuf_prefree_seg / rte_atomic16 Hanoch Haim (hhaim)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).