Skip to content

Commit c649c41

Browse files
julianwiedmanndavem330
authored andcommitted
s390/qeth: fix cancelling of TX timer on dev_close()
With the introduction of TX coalescing, .ndo_start_xmit now potentially starts the TX completion timer. So only kill the timer _after_ TX has been disabled. Fixes: ee1e52d ("s390/qeth: add TX IRQ coalescing support for IQD devices") Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d975cb7 commit c649c41

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/s390/net/qeth_core_main.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6717,17 +6717,17 @@ int qeth_stop(struct net_device *dev)
67176717
unsigned int i;
67186718

67196719
/* Quiesce the NAPI instances: */
6720-
qeth_for_each_output_queue(card, queue, i) {
6720+
qeth_for_each_output_queue(card, queue, i)
67216721
napi_disable(&queue->napi);
6722-
del_timer_sync(&queue->timer);
6723-
}
67246722

67256723
/* Stop .ndo_start_xmit, might still access queue->napi. */
67266724
netif_tx_disable(dev);
67276725

6728-
/* Queues may get re-allocated, so remove the NAPIs here. */
6729-
qeth_for_each_output_queue(card, queue, i)
6726+
qeth_for_each_output_queue(card, queue, i) {
6727+
del_timer_sync(&queue->timer);
6728+
/* Queues may get re-allocated, so remove the NAPIs. */
67306729
netif_napi_del(&queue->napi);
6730+
}
67316731
} else {
67326732
netif_tx_disable(dev);
67336733
}

0 commit comments

Comments
 (0)