Commit 8fe78989 authored by Zoltan Kiss's avatar Zoltan Kiss Committed by David S. Miller

xen-netback: Disable NAPI after disabling interrupts

Otherwise the interrupt handler still calls napi_complete. Although it
won't schedule NAPI again as either NAPI_STATE_DISABLE or
NAPI_STATE_SCHED is set, it is just unnecessary, and it makes more
sense to do this way.
Signed-off-by: default avatarZoltan Kiss <zoltan.kiss@linaro.org>
Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
Acked-by: default avatarWei Liu <wei.liu2@citrix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7fd2561e
...@@ -281,10 +281,10 @@ static void xenvif_down(struct xenvif *vif) ...@@ -281,10 +281,10 @@ static void xenvif_down(struct xenvif *vif)
for (queue_index = 0; queue_index < num_queues; ++queue_index) { for (queue_index = 0; queue_index < num_queues; ++queue_index) {
queue = &vif->queues[queue_index]; queue = &vif->queues[queue_index];
napi_disable(&queue->napi);
disable_irq(queue->tx_irq); disable_irq(queue->tx_irq);
if (queue->tx_irq != queue->rx_irq) if (queue->tx_irq != queue->rx_irq)
disable_irq(queue->rx_irq); disable_irq(queue->rx_irq);
napi_disable(&queue->napi);
del_timer_sync(&queue->credit_timeout); del_timer_sync(&queue->credit_timeout);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment