commit | b9aafb0e91a079ff9438ce3c532ea46d4cd2f0fc | [log] [tgz] |
---|---|---|
author | Ben Hutchings <bhutchings@solarflare.com> | Mon Sep 01 12:46:33 2008 +0100 |
committer | Jeff Garzik <jgarzik@redhat.com> | Wed Sep 03 09:53:44 2008 -0400 |
tree | 083d74d62cb2e562ea2d20a3024173efa8a4b7e5 | |
parent | f8ea0b6743f00180ee3260d82f383a02a4dd9a78 [diff] |
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>