From: "Hanoch Haim (hhaim)" <hhaim@cisco.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Cc: "Hanoch Haim (hhaim)" <hhaim@cisco.com>
Subject: [dpdk-dev] rte_mbuf.h / rte_pktmbuf_prefree_seg / rte_atomic16
Date: Tue, 14 Nov 2017 16:23:49 +0000 [thread overview]
Message-ID: <63b5253280db4d39b5ca8efc3182e280@XCH-RTP-017.cisco.com> (raw)
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
reply other threads:[~2017-11-14 16:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=63b5253280db4d39b5ca8efc3182e280@XCH-RTP-017.cisco.com \
--to=hhaim@cisco.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).