From: Jose Gavine Cueto <pepedocs@gmail.com>
To: Thomas Monjalon <thomas.monjalon@6wind.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] rte_mbuf - contiguous ?
Date: Fri, 25 Oct 2013 22:04:05 +0800 [thread overview]
Message-ID: <CAJ5bv6Hp=kZ3z5tP_uz7zo6c2rfT8Hbax9nobS53Pcvuc81tyA@mail.gmail.com> (raw)
In-Reply-To: <201310241032.14803.thomas.monjalon@6wind.com>
Hi Thomas,
I've read both the rte_pktmbuf_is_contiguous and rte_pktmbuf_clone. I
think that I can get each mbuf segments and copy them to memory linearly.
Thanks for the tip.
On Thu, Oct 24, 2013 at 4:32 PM, Thomas Monjalon
<thomas.monjalon@6wind.com>wrote:
> 24/10/2013 10:09, Jose Gavine Cueto :
> > Thank you for the information. Because I would like to copy an rte_mbuf
> to
> > a memory mapped file for an application. Is there some dpdk API for this
> > copy operation (linear/nonlinear) or are these left with the application
> > developers ?
>
> You can have some tips by looking at rte_pktmbuf_is_contiguous:
> http://dpdk.org/doc/api/rte__mbuf_8h.html#a511a116ae4822037d4f1fb561aa4ffcf
> and rte_pktmbuf_clone:
> http://dpdk.org/doc/api/rte__mbuf_8h.html#a1d26cc982f6363cd7492dd70cc5c287c
>
> --
> Thomas
>
--
To stop learning is like to stop loving.
prev parent reply other threads:[~2013-10-25 14:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-24 7:49 Jose Gavine Cueto
2013-10-24 8:03 ` Thomas Monjalon
2013-10-24 8:09 ` Jose Gavine Cueto
2013-10-24 8:32 ` Thomas Monjalon
2013-10-25 14:04 ` Jose Gavine Cueto [this message]
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='CAJ5bv6Hp=kZ3z5tP_uz7zo6c2rfT8Hbax9nobS53Pcvuc81tyA@mail.gmail.com' \
--to=pepedocs@gmail.com \
--cc=dev@dpdk.org \
--cc=thomas.monjalon@6wind.com \
/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).