DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Yossi Barshishat" <yossi@imvisiontech.com>
To: <dev@dpdk.org>
Subject: [dpdk-dev] zero copy of received segmented IP packet
Date: Sun, 30 Mar 2014 09:52:22 +0300	[thread overview]
Message-ID: <02a701cf4be4$a8f3a440$fadaecc0$@imvisiontech.com> (raw)

Hi,

 

Assuming I know ahead that all IP segments related to one single IP packet
ID arrive consequently and I need to forward the entire IP payload toward
the application layer.

One way to handle this is using a hash table for reassembly of the packet
data (like the ipv4_reassembly example), another way would be to assume one
single bucket (following the above assumption).

 

However any means the DPDK provides doesn't enable a zero copy mechanism (it
will be required to copy the segments payloads into one larger buffer).

 

Does anybody has any idea regarding a method to control the place where each
part of the packet will be written to?

e.g. allocating the first segment regularly while the packet data buffer is
set to the maximum packet length (rather than to MTU size), and then reading
n bytes after the start of each following segment into the data buffer.

 

That way I can forward the app layer the buffer without copying it.

 

Thanks,

 

 

             reply	other threads:[~2014-03-30  6:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-30  6:52 Yossi Barshishat [this message]
2014-03-30 14:17 ` David P. Reed
2014-03-30 15:13   ` Yossi Barshishat

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='02a701cf4be4$a8f3a440$fadaecc0$@imvisiontech.com' \
    --to=yossi@imvisiontech.com \
    --cc=dev@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).