Skip to content
  • Rusty Russell's avatar
    lguest: Adaptive timeout · aa124984
    Rusty Russell authored
    
    
    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: default avatarRusty Russell <rusty@rustcorp.com.au>
    aa124984