sfc: Really disable flow control while flushing
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 6 Sep 2012 15:52:31 +0000 (16:52 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Sat, 1 Dec 2012 00:26:09 +0000 (00:26 +0000)
commitd5e8cc6c946e0857826dcfbb3585068858445bfe
tree2867bb12190df7cea905afce3a698d41202953b1
parent3f978ef36cca9bb10c88a56baec1d9d1cb072b98
sfc: Really disable flow control while flushing

Receiving pause frames can block TX queue flushes.  Earlier changes
work around this by reconfiguring the MAC during flushes for VFs, but
during flushes for the PF we would only change the fc_disable counter.
Unless the MAC is reconfigured for some other reason during the flush
(which I would not expect to happen) this had no effect at all.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/falcon.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/nic.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/siena.c
drivers/net/ethernet/sfc/siena_sriov.c