mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* zero-copy UDP send in kernel
@ 2002-10-08 17:56 devnetfs
  0 siblings, 0 replies; only message in thread
From: devnetfs @ 2002-10-08 17:56 UTC (permalink / raw)
  To: linux-kernel

Hello,

I have a buffer in kernel (module), which I need to send over the n/w
as UDP pkt. I am creating an socket (sock) and using
sock->ops->sendmsg(). And sendmsg() takes 'struct msghdr' containing a
iovec, which points to my buffer. 

The problem is, sendmsg() internally does an additional copy (from
iovec to an sk_buff). Can this be avoided? I mean can the sk_buff's
data buffer pointers be made to point to my buffer? or something else,
to avoid this 'copying'.

Copying from one region (my buffer) to another (sk_buff) of the kernel
seems to be real _waste_. 

I have heard something about non-linear sk_buff's. Can they be used in
such scenario?

Thanks in Advance,
Abhi.


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-08 17:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-08 17:56 zero-copy UDP send in kernel devnetfs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®