]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1995edf47646094dd21c631ad3fac9e72118f303
tree2867bb12190df7cea905afce3a698d41202953b1
parent236eddf0bf927fe3da3be713cf5a4581c8e2883a
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