login
Header Space

 
 

Re: [PATCH 5/5] tun: vringfd xmit support.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: pradeep singh rautela <rautelap@...>
Cc: Rusty Russell <rusty@...>, <netdev@...>, <linux-kernel@...>, Max Krasnyansky <maxk@...>, <virtualization@...>
Date: Friday, April 18, 2008 - 10:25 am

On Fri, Apr 18, 2008 at 4:46 AM, pradeep singh rautela
<rautelap@gmail.com> wrote:

That's not the same. In particular, his version accounts for the
fractional page at the beginning, while yours doesn't.

While it's tempting to use algebra to simplify things, it's not safe
to do so when the expression involves division over the integers. The
only care-free integer math in a computer is subtraction and ++.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] High-speed tun receive and xmit, Rusty Russell, (Fri Apr 18, 12:33 am)
Re: [PATCH 2/5] /dev/vring: simple userspace-kernel ringbuff..., Evgeniy Polyakov, (Sat Apr 19, 12:33 pm)
[PATCH 3/5] /dev/vring limit and base ioctls, Rusty Russell, (Fri Apr 18, 12:41 am)
[PATCH 4/5] tun: vringfd receive support., Rusty Russell, (Fri Apr 18, 12:42 am)
[PATCH 5/5] tun: vringfd xmit support., Rusty Russell, (Fri Apr 18, 12:43 am)
Re: [PATCH 5/5] tun: vringfd xmit support., pradeep singh rautela, (Fri Apr 18, 7:46 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Ray Lee, (Fri Apr 18, 10:25 am)
Re: [PATCH 5/5] tun: vringfd xmit support., pradeep singh rautela, (Fri Apr 18, 2:01 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Fri Apr 18, 7:31 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Rusty Russell, (Fri Apr 18, 11:15 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Fri Apr 18, 9:54 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Fri Apr 18, 3:06 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Rusty Russell, (Sat Apr 19, 10:41 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Sat Apr 19, 1:51 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Ray Lee, (Fri Apr 18, 12:24 pm)
speck-geostationary