DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v3 0/2] add rte ring reset api and use it to flush a ring by hash
@ 2018-12-12 11:15 Gavin Hu
  2018-12-12 11:15 ` [dpdk-dev] [PATCH v3 1/2] ring: add reset api to flush the ring when not in use Gavin Hu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gavin Hu @ 2018-12-12 11:15 UTC (permalink / raw)
  To: dev
  Cc: nd, Gavin Hu, thomas, jerin.jacob, hemant.agrawal,
	Honnappa.Nagarahalli, bruce.richardson

V3: Allow experimental API for meson build

V2: Fix the coding style issue(commit message line too long)

V1: To flush a ring not in use, dequeue one by one is wasting cpu cycles.
The patch is to just resetting the head and tail indices to save cpu
cycle.

Gavin Hu (2):
  ring: add reset api to flush the ring when not in use
  hash: flush the rings instead of dequeuing one by one

 lib/librte_hash/Makefile             |  2 +-
 lib/librte_hash/meson.build          |  3 +++
 lib/librte_hash/rte_cuckoo_hash.c    | 11 ++++-------
 lib/librte_ring/rte_ring.h           | 20 ++++++++++++++++++++
 lib/librte_ring/rte_ring_version.map |  7 +++++++
 5 files changed, 35 insertions(+), 8 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-12-19 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-12 11:15 [dpdk-dev] [PATCH v3 0/2] add rte ring reset api and use it to flush a ring by hash Gavin Hu
2018-12-12 11:15 ` [dpdk-dev] [PATCH v3 1/2] ring: add reset api to flush the ring when not in use Gavin Hu
2018-12-12 11:15 ` [dpdk-dev] [PATCH v3 2/2] hash: flush the rings instead of dequeuing one by one Gavin Hu
2018-12-19 21:59 ` [dpdk-dev] [PATCH v3 0/2] add rte ring reset api and use it to flush a ring by hash Thomas Monjalon

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).