DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] zero copy of received segmented IP packet
@ 2014-03-30  6:52 Yossi Barshishat
  2014-03-30 14:17 ` David P. Reed
  0 siblings, 1 reply; 3+ messages in thread
From: Yossi Barshishat @ 2014-03-30  6:52 UTC (permalink / raw)
  To: dev

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,

 

 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-30 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-30  6:52 [dpdk-dev] zero copy of received segmented IP packet Yossi Barshishat
2014-03-30 14:17 ` David P. Reed
2014-03-30 15:13   ` Yossi Barshishat

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).