DPDK usage discussions
 help / color / Atom feed
From: 宋捷 <songj@zctt.com>
To: "'users'" <users@dpdk.org>,
	"'Stephen Hemminger'" <stephen@networkplumber.org>,
	"'Van Haaren, Harry'" <harry.van.haaren@intel.com>
Subject: [dpdk-users] ojectes from the mempool are disorderd by rte_mempool_generic_get
Date: Tue, 24 Mar 2020 13:16:04 +0800
Message-ID: <000001d6019b$519bec20$f4d3c460$@zctt.com> (raw)

Hi all,



I created a packet mbuf pool (rte_pktmbuf_pool_create) for saving some
packets, And using rte_mempool_obj_iter for put hundreds of packets (from a
pcap file) into the packet pool.


Finally I need to get ten packets from the packet pool.

If I call rte_mempool_generic_get for one packet each time, and try 10
times, then I can get ten packets in correct order;

But if call rte_mempool_generic_get for ten packets one time, then these ten
packets are disordered.


So using rte_mempool_generic_get for getting multi objects, it will return
disorder objects from the mbuf pool? 

If there¡¯s any other way for can get objects from the mempool orderly


I used DPDK18.05






             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-24  5:16 宋捷 [this message]
2020-03-24 10:54 ` Van Haaren, Harry

Reply instructions:

You may reply publically 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000001d6019b$519bec20$f4d3c460$@zctt.com' \
    --to=songj@zctt.com \
    --cc=harry.van.haaren@intel.com \
    --cc=stephen@networkplumber.org \
    --cc=users@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
	public-inbox-index users

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/ public-inbox