]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f3d8172b79d2f2ac8958541f1d2c2ea82d81799
tree19869ff5f97c2b270bde599a7c0ce59bb5afa5f7
parent46a67ccf40520f58d3fa10bf2e5de85cec17ada5
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