netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* UDP splice
@ 2013-06-21 10:04 Ricardo Landim
  2013-06-24 15:42 ` Ben Hutchings
  0 siblings, 1 reply; 13+ messages in thread
From: Ricardo Landim @ 2013-06-21 10:04 UTC (permalink / raw)
  To: netdev

Hi folks,

I am developing a RTP proxy for voip applications and tried use the
splice syscall
for zero copy. I am trying splice udp data to pipe and splice pipe to udp
socket.

I read some information of the splice function and reading the kernel
source code I saw this lines in net/ipv4/af_inet.c

const struct proto_ops inet_stream_ops = {
...
    .splice_read = tcp_splice_read,
...
}

const struct proto_ops inet_dgram_ops = {
...
...
}

There is an implementation of splice for TCP socket but not for UDP socket.

My question is: there is some limitation in UDP socket that prevents this
implementation?

Regards,
Ricardo Landim

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

end of thread, other threads:[~2013-06-25  0:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21 10:04 UDP splice Ricardo Landim
2013-06-24 15:42 ` Ben Hutchings
2013-06-24 15:51   ` Hannes Frederic Sowa
2013-06-24 16:02     ` Ben Hutchings
2013-06-24 17:01       ` Hannes Frederic Sowa
2013-06-24 17:09         ` Ricardo Landim
2013-06-24 17:53           ` Eric Dumazet
2013-06-24 18:08             ` Ricardo Landim
2013-06-24 18:33               ` Eric Dumazet
2013-06-24 18:39               ` David Miller
2013-06-24 21:33               ` Rick Jones
2013-06-25  0:04                 ` Ricardo Landim
2013-06-24 18:38           ` David Miller

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