lkml.org 
[lkml]   [1996]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Possible improvement to pipe throughput
Date
In linux.dev.kernel, article <199609270957.FAA25653@caip.rutgers.edu>,
"David S. Miller" <davem@caip.rutgers.edu> writes:
>
> Implementing this for the pipe case might be useful, it will give us a
> better idea how difficult page flipping in the networking layer will
> be for us to implement.
>
Damn difficult.

The problem is, we need to get the data _after_ all the headers into a
specific position. This would mean that the code which reads the IP frame
from the card only reads the IP header, then the TCP code reads the TCP
header and figures out where on the flip-out page to put the data. After
that, you check the TCP checksum, and if it doesn't match you undo the
effects of all of the above. :-/

This is certainly possible. Whether it's a good idea to totally rewrite
the IP stack to do it is another question entirely, and I for one would
answer it with a resounding "You must be crazy".

--
Life is a hereditary disease
--
Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg
Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de
90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.052 / U:1.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site