source: trunk/package/ep80579-drivers/patches/101-iegbe_fix_napi_interface.patch @ 20648

Last change on this file since 20648 was 20648, checked in by kaloz, 7 years ago

[x86]: add a subtarget and drivers for the Intel Tolapai SoC

File size: 1.4 KB
  • Embedded/src/GbE/iegbe_main.c

    a b static irqreturn_t iegbe_intr_msi(int ir 
    34653465            printk("Critical error! ICR = 0x%x\n", icr); 
    34663466            return IRQ_HANDLED; 
    34673467        } 
    3468         if (likely(netif_rx_schedule_prep(netdev, &adapter->napi))) { 
     3468        if (likely(napi_schedule_prep(&adapter->napi))) { 
    34693469                adapter->total_tx_bytes = 0; 
    34703470                adapter->total_tx_packets = 0; 
    34713471                adapter->total_rx_bytes = 0; 
    34723472                adapter->total_rx_packets = 0; 
    3473                 __netif_rx_schedule(netdev, &adapter->napi); 
     3473                __napi_schedule(&adapter->napi); 
    34743474        } else 
    34753475                iegbe_irq_enable(adapter); 
    34763476 
    iegbe_intr(int irq, void *data) 
    35273527                E1000_WRITE_REG(&adapter->hw, IMC, ~0); 
    35283528                E1000_WRITE_FLUSH(&adapter->hw); 
    35293529        } 
    3530         if (likely(netif_rx_schedule_prep(netdev, &adapter->napi))) { 
     3530        if (likely(napi_schedule_prep(&adapter->napi))) { 
    35313531                adapter->total_tx_bytes = 0; 
    35323532                adapter->total_tx_packets = 0; 
    35333533                adapter->total_rx_bytes = 0; 
    35343534                adapter->total_rx_packets = 0; 
    3535                 __netif_rx_schedule(netdev, &adapter->napi); 
     3535                __napi_schedule(&adapter->napi); 
    35363536        } else 
    35373537                /* this really should not happen! if it does it is basically a 
    35383538                 * bug, but not a hard error, so enable ints and continue */ 
    static int iegbe_clean(struct napi_struc 
    35743574        if (work_done < budget) { 
    35753575                if (likely(adapter->itr_setting & 3)) 
    35763576                        iegbe_set_itr(adapter); 
    3577                 netif_rx_complete(poll_dev, napi); 
     3577                napi_complete(napi); 
    35783578                iegbe_irq_enable(adapter); 
    35793579        } 
    35803580 
Note: See TracBrowser for help on using the repository browser.