From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) by dpdk.org (Postfix) with ESMTP id 92EEA58DC for ; Fri, 25 Oct 2013 16:03:16 +0200 (CEST) Received: by mail-lb0-f170.google.com with SMTP id u14so795600lbd.1 for ; Fri, 25 Oct 2013 07:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dVYhVNN/ocD0x7CSlVGB+wDP9drSgU0Iw+CbnnmeppA=; b=D4yK8kGBOPr6+4T1P/ZeHC9TuTIls67SJdCxGqVTUgSbrz7HV4dtxkM0guBCGjHgap vgdXxqTvb4fNXoFGiZJm5PFYefdf3syZKIki0R0fXP58kr+bR2mIYIrep2kqPoHDy11I s8qHYlSxzkMZARBYnSii8dcKFROeY8Ng6iCMP1d9W3jdt+ONDA8C5HPIODTg2TN24LSu fcSTc4rUDIFUpA1zGWAbOJF+fFPkILFKYBA/1DKHi1owtyM4pEvq3Sa5KSqkErsG3FSW h81mVo0zcj2/W+B4RWdMVPeNgK1mNLqEFqCVLP3tuHEgjG+7s1mdgF06SJF7NgMzE5n/ rTTw== MIME-Version: 1.0 X-Received: by 10.152.28.7 with SMTP id x7mr5431947lag.26.1382709845914; Fri, 25 Oct 2013 07:04:05 -0700 (PDT) Received: by 10.114.12.136 with HTTP; Fri, 25 Oct 2013 07:04:05 -0700 (PDT) In-Reply-To: <201310241032.14803.thomas.monjalon@6wind.com> References: <201310241003.20425.thomas.monjalon@6wind.com> <201310241032.14803.thomas.monjalon@6wind.com> Date: Fri, 25 Oct 2013 22:04:05 +0800 Message-ID: From: Jose Gavine Cueto To: Thomas Monjalon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] rte_mbuf - contiguous ? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 14:03:16 -0000 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 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.