lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 24 Feb 2007 15:07:40 +0530
From:	"kalash nainwal" <nirvana.code@...il.com>
To:	"kristrev@...dent.matnat.uio.no" <kristrev@...dent.matnat.uio.no>
Cc:	netdev@...r.kernel.org, linux-net@...r.kernel.org
Subject: Re: Copy data from one SKB to another

On 2/22/07, kristrev@...dent.matnat.uio.no
<kristrev@...dent.matnat.uio.no> wrote:
> 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
>
> -

How about cloning? Is that an option?
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ