amd-xgbe: Use __napi_schedule_irqoff
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 17 Feb 2016 17:48:29 +0000 (11:48 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2016 20:22:18 +0000 (15:22 -0500)
Change from calling __napi_schedule to __napi_schedule_irqoff when running
in interrupt context or when called by netpoll with interrupts already
disabled. The Tx timer function will continue to use __napi_schedule.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c

index 5a4d9ca369d76a3c6406b8a340c996aa2db61c0b..80ef4041e7a3116342874da91be809a576c5a5a7 100644 (file)
@@ -356,7 +356,7 @@ static irqreturn_t xgbe_isr(int irq, void *data)
                                xgbe_disable_rx_tx_ints(pdata);
 
                                /* Turn on polling */
-                               __napi_schedule(&pdata->napi);
+                               __napi_schedule_irqoff(&pdata->napi);
                        }
                }
 
@@ -409,7 +409,7 @@ static irqreturn_t xgbe_dma_isr(int irq, void *data)
                disable_irq_nosync(channel->dma_irq);
 
                /* Turn on polling */
-               __napi_schedule(&channel->napi);
+               __napi_schedule_irqoff(&channel->napi);
        }
 
        return IRQ_HANDLED;