]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Work-around flush timeout when flushes have completed
authorDaniel Pieczko <dpieczko@solarflare.com>
Tue, 2 Oct 2012 12:36:18 +0000 (13:36 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Sat, 1 Dec 2012 02:37:27 +0000 (02:37 +0000)
commit59c7b8b871a9b817d38df015f81b83bfe057636f
treecedb42187455981ebd1cb05a9bba0a836b5a94eb
parent1c009e8dbc5b09cd06ae34f5f062a9b656840836
sfc: Work-around flush timeout when flushes have completed

We sometimes hit a "failed to flush" timeout on some TX queues, but the
flushes have completed and the flush completion events seem to go missing.
In this case, we can check the TX_DESC_PTR_TBL register and drain the
queues if the flushes had finished.

[bwh: Minor fixes to coding style]
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/nic.c