]> git.baikalelectronics.ru Git - kernel.git/commit
myri10ge: increase and fix handoff timeout
authorBrice Goglin <brice@myri.com>
Fri, 9 May 2008 00:17:16 +0000 (02:17 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 13 May 2008 05:30:26 +0000 (01:30 -0400)
commitfa7c0dcb7851dcf1a3cdb69aa04c3c7fcdc5aaf3
treee4c1128d1cc860fb2a0a2bd6f0eb51f315d99da5
parentecbeb79fe316619bd7f9657e635e8f3af41590ae
myri10ge: increase and fix handoff timeout

Increase the handoff timeout to 512ms so as to give the aeluros based
NICs sufficient time to handoff without relying on the msleep() being
sloppy, and accidentally sleeping way longer than the 20ms we specified
in 20 separate 1ms sleeps.

Fix typo in the handoff sleep delay, which made it additive, not
exponential.

Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Andrew Gallatin <gallatin@myri.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/myri10ge/myri10ge.c