sfc: Raise self-test timeouts
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 28 Feb 2012 20:40:53 +0000 (20:40 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 6 Mar 2012 18:14:14 +0000 (18:14 +0000)
commit93e5dfa59b0e26a145a8adce5c9edf50bdaef4c7
treec4d2922d3d02d2a9fc91950c46a62a23bd52c78e
parente7bed9c8838c09518c02ea1a2ee74569836065ea
sfc: Raise self-test timeouts

IRQ latency can be ridiculously high for various reasons, so our
current timeouts of 100 ms or 10 ms are too short.

Change the IRQ and event tests to use polling loops starting with a
delay of 1 tick and doubling that if necessary up to a maximum total
delay of approximately 1 second.

Raise the loopback packet RX timeout to 1 second.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/selftest.c