sfc: Make queue flushes more reliable
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 1 Sep 2008 11:49:37 +0000 (12:49 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:54:37 +0000 (18:54 -0400)
commit6bc5d3a9334401d788e1adf8b71add211265bc8b
tree250f3de17f38b778ac8a109229c5b3687ab8d15d
parent92ade881b2fcfc2744d3de43d172d3ec8e13afd7
sfc: Make queue flushes more reliable

Increase the potential retry count for RX flushes from 5 to 100.

Stop polling the RX_DESC_PTR_TBL to infer that a flush might have
happened. Instead absolutely rely on the flush events, unless bug 7803
applies (Falcon rev A only).

To keep things quick, request flushes for every TX and RX queue up
front, and match up the events to requests.

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