sfc: Fix bugs in RX queue flushing
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 25 Nov 2009 16:09:55 +0000 (16:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Nov 2009 23:59:19 +0000 (15:59 -0800)
commit127e6e10ad17585c48cba8e1dcf30d98b90ee583
tree7c66f03e88b0f1aef5bb6d4f42724bd1fe7b5538
parent44838a447de3b1541cbf845853c4f8999310b0dd
sfc: Fix bugs in RX queue flushing

Avoid overrunning the hardware limit of 4 concurrent RX queue flushes.
Expand the queue flush state to support this.  Make similar changes to
TX flushing to keep the code symmetric.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/falcon.c
drivers/net/sfc/net_driver.h