sfc: Stop the TX queues during loopback self-tests
authorNeil Turton <nturton@solarflare.com>
Mon, 4 Apr 2011 12:46:23 +0000 (13:46 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 12 Apr 2011 15:20:25 +0000 (16:20 +0100)
commit9d1aea62e45d447e7fc05d4e7f4e90f633e3abfc
tree19869ff5f97c2b270bde599a7c0ce59bb5afa5f7
parent4a9f65f6304a00f6473e83b19c1e83caa1e42530
sfc: Stop the TX queues during loopback self-tests

If the TX queues are running during loopback self tests, host
traffic gets looped back which causes the test to fail.  Avoid
restarting the TX queues after the port reset so that any packets
sent by the host get held back until after the tests have completed.

[bwh: Also wake all TX queues at the end of self-tests.]

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