[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/2] xen-netback: Disable NAPI after disabling interrupts
On Tue, Oct 28, 2014 at 03:29:30PM +0000, David Vrabel wrote: > From: Zoltan Kiss <zoltan.kiss@xxxxxxxxxx> > > 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: Zoltan Kiss <zoltan.kiss@xxxxxxxxxx> > Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> > --- > drivers/net/xen-netback/interface.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/xen-netback/interface.c > b/drivers/net/xen-netback/interface.c > index 895fe84..a6a32d3 100644 > --- a/drivers/net/xen-netback/interface.c > +++ b/drivers/net/xen-netback/interface.c > @@ -235,10 +235,10 @@ static void xenvif_down(struct xenvif *vif) > > for (queue_index = 0; queue_index < num_queues; ++queue_index) { > queue = &vif->queues[queue_index]; > - napi_disable(&queue->napi); > disable_irq(queue->tx_irq); > if (queue->tx_irq != queue->rx_irq) > disable_irq(queue->rx_irq); > + napi_disable(&queue->napi); > del_timer_sync(&queue->credit_timeout); > } > } > -- > 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |