sfc: Speed up loopback self-test
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 1 Sep 2008 11:46:33 +0000 (12:46 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 3 Sep 2008 13:53:44 +0000 (09:53 -0400)
commitb9aafb0e91a079ff9438ce3c532ea46d4cd2f0fc
tree083d74d62cb2e562ea2d20a3024173efa8a4b7e5
parentf8ea0b6743f00180ee3260d82f383a02a4dd9a78
sfc: Speed up loopback self-test

Add efx_poll_loopback() function to test for successful completion of test.
Change efx_test_loopback() to end the test after 1 ms if
efx_poll_loopback() indicates success, and otherwise to wait for 100 ms
as before.

While we're here, rename efx_{rx,tx}_loopback() to
efx_{begin,end}_loopback() which more accurately reflect their
purpose.

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