net: bcmsysport: use __napi_schedule_irqoff()
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 20 Apr 2016 18:37:08 +0000 (11:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2016 19:06:04 +0000 (15:06 -0400)
Both bcm_sysport_tx_isr() and bcm_sysport_rx_isr() run in hard irq
context, we do not need to block irq again.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c

index 993c780bdfab9ec35de3e1b0deca024c2615cca1..9e3ec739d860d72ef02cda6294dc5cba85ec36b4 100644 (file)
@@ -873,7 +873,7 @@ static irqreturn_t bcm_sysport_rx_isr(int irq, void *dev_id)
                if (likely(napi_schedule_prep(&priv->napi))) {
                        /* disable RX interrupts */
                        intrl2_0_mask_set(priv, INTRL2_0_RDMA_MBDONE);
-                       __napi_schedule(&priv->napi);
+                       __napi_schedule_irqoff(&priv->napi);
                }
        }
 
@@ -916,7 +916,7 @@ static irqreturn_t bcm_sysport_tx_isr(int irq, void *dev_id)
 
                if (likely(napi_schedule_prep(&txr->napi))) {
                        intrl2_1_mask_set(priv, BIT(ring));
-                       __napi_schedule(&txr->napi);
+                       __napi_schedule_irqoff(&txr->napi);
                }
        }