From: Gavin Hu <gavin.hu@arm.com>
To: dev@dpdk.org
Cc: thomas@monjalon.net, stephen@networkplumber.org,
olivier.matz@6wind.com, chaozhu@linux.vnet.ibm.com,
bruce.richardson@intel.com, konstantin.ananyev@intel.com,
jerin.jacob@caviumnetworks.com, Honnappa.Nagarahalli@arm.com,
gavin.hu@arm.com
Subject: [dpdk-dev] [PATCH v1 0/2] ring C11 library fix and optimization
Date: Fri, 9 Nov 2018 19:42:45 +0800 [thread overview]
Message-ID: <1541763767-7399-1-git-send-email-gavin.hu@arm.com> (raw)
V1:
Update the ring C11 library including the following changes:
1) On relaxed ordering platforms(like Arm64,PPPC), in ring C11 implementation,
loading head and tail might be reodered, this makes CAS(compare and retry
the flow if the head is outdated) not working as expected, the fix is to
ensure the head is read before the tail, leaving no chances of the combination
of outdated head and new tail.
2) With the above memory fence introduced, some loading can be relaxed.
Gavin Hu (2):
ring: keep the deterministic order allowing retry to work
ring: relaxed ordering for load and store the head
lib/librte_ring/rte_ring_c11_mem.h | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
--
2.7.4
next reply other threads:[~2018-11-09 11:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-09 11:42 Gavin Hu [this message]
2018-11-09 11:42 ` [dpdk-dev] [PATCH v1 1/2] ring: keep the deterministic order allowing retry to work Gavin Hu
2018-11-09 11:42 ` [dpdk-dev] [PATCH v1 2/2] ring: relaxed ordering for load and store the head Gavin Hu
2018-11-13 15:57 ` [dpdk-dev] [PATCH v1 0/2] ring C11 library fix and optimization Thomas Monjalon
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=1541763767-7399-1-git-send-email-gavin.hu@arm.com \
--to=gavin.hu@arm.com \
--cc=Honnappa.Nagarahalli@arm.com \
--cc=bruce.richardson@intel.com \
--cc=chaozhu@linux.vnet.ibm.com \
--cc=dev@dpdk.org \
--cc=jerin.jacob@caviumnetworks.com \
--cc=konstantin.ananyev@intel.com \
--cc=olivier.matz@6wind.com \
--cc=stephen@networkplumber.org \
--cc=thomas@monjalon.net \
/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).