DPDK usage discussions
 help / color / mirror / Atom feed
From: 宋捷 <songj@zctt.com>
To: <users@dpdk.org>
Subject: [dpdk-users] How to getting first objects from a rte_mempool buffer every time?
Date: Wed, 20 Mar 2019 18:44:35 +0800	[thread overview]
Message-ID: <000001d4df09$e970f1e0$bc52d5a0$@zctt.com> (raw)

Hi all,

 

I have a pcap file that contained 100 IP packets. I can send them by DPDK by
below steps:

 

1.     I create a rte_mempool buffer by rte_pktmbuf_pool_create. load these
100 packets into this buffer. 

2.     call rte_mempool_get_bulk to getting packets form rte_mempool buffer
into rte_mbuf buffer,

3.     put rte_mbuf buffer into rte_eth_tx_burst for sending .

The pcap packets can be sent out from 1 to 100  Ok.

 

Now I want to send the only first 10 packets every time,

rte_mempool_get_bulk can get 1-10 objects, but next time it will get 11-20
objects.

I don’t know if there is easy way to getting first 10 objects from
rte_mempool buffer every time?

 

 

Thanks

 

Jie


             reply	other threads:[~2019-03-20 10:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-20 10:44 宋捷 [this message]
2019-03-20 11:57 ` Van Haaren, Harry

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='000001d4df09$e970f1e0$bc52d5a0$@zctt.com' \
    --to=songj@zctt.com \
    --cc=users@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).