From: Ricardo Landim <ricardolan@gmail.com>
To: netdev@vger.kernel.org
Subject: UDP splice
Date: Fri, 21 Jun 2013 07:04:16 -0300 [thread overview]
Message-ID: <CACYKsS7pMFNdBxU2raMphKyb1zU7MEbhc=vsD+FdZ5sgFq71NQ@mail.gmail.com> (raw)
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
next reply other threads:[~2013-06-21 10:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 10:04 Ricardo Landim [this message]
2013-06-24 15:42 ` UDP splice 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACYKsS7pMFNdBxU2raMphKyb1zU7MEbhc=vsD+FdZ5sgFq71NQ@mail.gmail.com' \
--to=ricardolan@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).