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>
This commit is contained in:
@@ -1792,6 +1792,7 @@ const struct efx_nic_type falcon_a1_nic_type = {
|
||||
.remove_port = falcon_remove_port,
|
||||
.handle_global_event = falcon_handle_global_event,
|
||||
.prepare_flush = falcon_prepare_flush,
|
||||
.finish_flush = efx_port_dummy_op_void,
|
||||
.update_stats = falcon_update_nic_stats,
|
||||
.start_stats = falcon_start_nic_stats,
|
||||
.stop_stats = falcon_stop_nic_stats,
|
||||
@@ -1834,6 +1835,7 @@ const struct efx_nic_type falcon_b0_nic_type = {
|
||||
.remove_port = falcon_remove_port,
|
||||
.handle_global_event = falcon_handle_global_event,
|
||||
.prepare_flush = falcon_prepare_flush,
|
||||
.finish_flush = efx_port_dummy_op_void,
|
||||
.update_stats = falcon_update_nic_stats,
|
||||
.start_stats = falcon_start_nic_stats,
|
||||
.stop_stats = falcon_stop_nic_stats,
|
||||
|
Reference in New Issue
Block a user