]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
lguest: Adaptive timeout
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Jul 2008 14:58:36 +0000 (09:58 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 28 Jul 2008 23:58:36 +0000 (09:58 +1000)
commitaa1249840bfc8d62431eed5796bf99887b963ab6
tree35cf6cd82910af52e271c5e78ad47529e6daaed6
parenta161883a29bf6100efe7b5346bec274e5023c29c
lguest: Adaptive timeout

Since the correct timeout value varies, use a heuristic which adjusts
the timeout depending on how many packets we've seen.  This gives
slightly worse results, but doesn't need tweaking when GSO is
introduced.

500 usec 19.1887 xmit 561141 recv 1 timeout 559657
Dynamic (278) 20.1974 xmit 214510 recv 5 timeout 214491 usec 278

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Documentation/lguest/lguest.c