netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Copy data from one SKB to another
@ 2007-02-22 11:59 kristrev
  2007-02-24  9:37 ` kalash nainwal
  0 siblings, 1 reply; 4+ messages in thread
From: kristrev @ 2007-02-22 11:59 UTC (permalink / raw)
  To: netdev; +Cc: linux-net

Hello,

I am working on optimizing the TCP-code for a certain type of TCP-stream,
and to make one of my optimizations work I need to copy data from one SKB
(the data field of the skb) to another SKB (data field).

Currently I am using memcpy, and it does what it is supposed to, but I am
curious as to if there are any other (potentially faster/more efficient)
ways of doing it. I have checked out the skb_add_data (used when you can
copy data from the msg you are sending into the most recent skb added to
the queue), but from what I can understand it only copies from userspace
into kernelspace (whereas I need to copy kernel-kernel).

Does anyone have any hints, suggestions, solutions or something else they
think might help?

Thanks,
Kristian


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

end of thread, other threads:[~2007-02-24 11:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-22 11:59 Copy data from one SKB to another kristrev
2007-02-24  9:37 ` kalash nainwal
2007-02-24 10:53   ` LDB
2007-02-24 11:32     ` Kristian Evensen

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