login
Header Space

 
 

Re: [PATCH RFC 3/5] tun: vringfd receive support.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rusty Russell <rusty@...>
Cc: <linux-kernel@...>, <netdev@...>, <virtualization@...>
Date: Tuesday, April 8, 2008 - 3:49 pm

Rusty Russell wrote:

In general the code looks good. The only thing I could not convince myself in
is whether having generic ring buffer makes sense or not.
At least the TUN driver would be more efficient if it had its own simple ring
 implementation. Less indirection, fewer callbacks, fewer if()s, etc. TUN
already has the file descriptor and having two additional fds for rx and tx
ring is a waste (think of a VPN server that has to have a bunch of TUN fds).
Also as I mentioned before Jamal and I wanted to expose some of the SKB fields
through TUN device. With the rx/tx rings the natural way of doing that would
be the ring descriptor itself. It can of course be done the same way we copy
proto info (PI) and GSO stuff before the packet but that means more
copy_to_user() calls and yet more checks.

So. What am I missing ? Why do we need generic ring for the TUN ? I looked at
the lguest code a bit and it seems that we need a bunch of network specific
code anyway. The cool thing is that you can now mmap the rings into the guest
 directly but the same thing can be done with TUN specific rings.

Max



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC 1/5] vringfd syscall, Rusty Russell, (Sat Apr 5, 8:02 am)
Re: [PATCH RFC 1/5] vringfd syscall, Marcelo Tosatti, (Sat Apr 12, 1:18 pm)
Re: [PATCH RFC 1/5] vringfd syscall, Rusty Russell, (Sat Apr 12, 2:19 pm)
Re: [PATCH RFC 1/5] vringfd syscall, Marcelo Tosatti, (Sat Apr 12, 1:39 pm)
Re: [PATCH RFC 1/5] vringfd syscall, Jeremy Fitzhardinge, (Wed Apr 9, 3:28 pm)
Re: [PATCH RFC 1/5] vringfd syscall, Arnd Bergmann, (Mon Apr 7, 10:35 pm)
Re: [PATCH RFC 1/5] vringfd syscall , Jonathan Corbet, (Mon Apr 7, 1:54 pm)
Re: [PATCH RFC 1/5] vringfd syscall, Rusty Russell, (Mon Apr 7, 6:34 pm)
[PATCH RFC 2/5] vringfd base/offset, Rusty Russell, (Sat Apr 5, 8:04 am)
Re: [PATCH RFC 2/5] vringfd base/offset, Arnd Bergmann, (Tue Apr 8, 1:14 am)
Re: [PATCH RFC 2/5] vringfd base/offset, Avi Kivity, (Sat Apr 5, 8:44 am)
Re: [PATCH RFC 2/5] vringfd base/offset, Rusty Russell, (Sat Apr 5, 10:54 pm)
[PATCH RFC 3/5] tun: vringfd receive support., Rusty Russell, (Sat Apr 5, 8:05 am)
Re: [PATCH RFC 3/5] tun: vringfd receive support., Max Krasnyansky, (Tue Apr 8, 3:49 pm)
Re: [PATCH RFC 3/5] tun: vringfd receive support., Rusty Russell, (Thu Apr 10, 1:44 am)
Re: [PATCH RFC 3/5] tun: vringfd receive support., Max Krasnyanskiy, (Thu Apr 10, 1:18 pm)
Re: [PATCH RFC 3/5] tun: vringfd receive support., Max Krasnyanskiy, (Thu Apr 10, 1:02 pm)
[PATCH RFC 4/5] tun: vringfd xmit support., Rusty Russell, (Sat Apr 5, 8:06 am)
Re: [PATCH RFC 4/5] tun: vringfd xmit support., Herbert Xu, (Mon Apr 7, 1:13 am)
Re: [PATCH RFC 4/5] tun: vringfd xmit support., Rusty Russell, (Mon Apr 7, 3:24 am)
Re: [PATCH RFC 4/5] tun: vringfd xmit support., David Miller, (Mon Apr 7, 3:35 am)
Re: [PATCH RFC 4/5] tun: vringfd xmit support., Rusty Russell, (Mon Apr 7, 9:51 pm)
[PATCH RFC 5/5] lguest support, Rusty Russell, (Sat Apr 5, 8:09 am)
speck-geostationary