]> git.baikalelectronics.ru Git - kernel.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)
commite124b2d7434dad9f9d07f2d398363cac65789ef4
tree35cf6cd82910af52e271c5e78ad47529e6daaed6
parent9e3cfdbb2f49744e2bf5170cac6981f331e9458c
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