sfc: Stop RX refill before flushing RX queues
rx_queue::enabled guards refill, so rename it to reflect that. Clear it at the start of the queue teardown process rather than waiting for the RX queue to be flushed. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
@@ -286,7 +286,7 @@ struct efx_rx_page_state {
|
||||
* @buffer: The software buffer ring
|
||||
* @rxd: The hardware descriptor ring
|
||||
* @ptr_mask: The size of the ring minus 1.
|
||||
* @enabled: Receive queue enabled indicator.
|
||||
* @refill_enabled: Enable refill whenever fill level is low
|
||||
* @flush_pending: Set when a RX flush is pending. Has the same lifetime as
|
||||
* @rxq_flush_pending.
|
||||
* @added_count: Number of buffers added to the receive queue.
|
||||
@@ -317,7 +317,7 @@ struct efx_rx_queue {
|
||||
struct efx_rx_buffer *buffer;
|
||||
struct efx_special_buffer rxd;
|
||||
unsigned int ptr_mask;
|
||||
bool enabled;
|
||||
bool refill_enabled;
|
||||
bool flush_pending;
|
||||
|
||||
unsigned int added_count;
|
||||
|
Reference in New Issue
Block a user