diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2010-04-01 12:05:27 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2010-04-01 12:05:27 +0000 |
commit | d3b9b93dd3df29460b21b1b4daa556f81f5780ba (patch) | |
tree | cc73f5514469c1e04792265df26b16380e00a843 /package/ep80579-drivers/patches/101-iegbe_fix_napi_interface.patch | |
parent | 6e383d7ef0894885429728affbf94c7d5a2bbe46 (diff) | |
download | mtk-20170518-d3b9b93dd3df29460b21b1b4daa556f81f5780ba.zip mtk-20170518-d3b9b93dd3df29460b21b1b4daa556f81f5780ba.tar.gz mtk-20170518-d3b9b93dd3df29460b21b1b4daa556f81f5780ba.tar.bz2 |
add a subtarget and drivers for the Intel Tolapai SoC
SVN-Revision: 20648
Diffstat (limited to 'package/ep80579-drivers/patches/101-iegbe_fix_napi_interface.patch')
-rw-r--r-- | package/ep80579-drivers/patches/101-iegbe_fix_napi_interface.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/package/ep80579-drivers/patches/101-iegbe_fix_napi_interface.patch b/package/ep80579-drivers/patches/101-iegbe_fix_napi_interface.patch new file mode 100644 index 0000000..921d464 --- /dev/null +++ b/package/ep80579-drivers/patches/101-iegbe_fix_napi_interface.patch @@ -0,0 +1,41 @@ +--- a/Embedded/src/GbE/iegbe_main.c ++++ b/Embedded/src/GbE/iegbe_main.c +@@ -3465,12 +3465,12 @@ static irqreturn_t iegbe_intr_msi(int ir + printk("Critical error! ICR = 0x%x\n", icr); + return IRQ_HANDLED; + } +- if (likely(netif_rx_schedule_prep(netdev, &adapter->napi))) { ++ if (likely(napi_schedule_prep(&adapter->napi))) { + adapter->total_tx_bytes = 0; + adapter->total_tx_packets = 0; + adapter->total_rx_bytes = 0; + adapter->total_rx_packets = 0; +- __netif_rx_schedule(netdev, &adapter->napi); ++ __napi_schedule(&adapter->napi); + } else + iegbe_irq_enable(adapter); + +@@ -3527,12 +3527,12 @@ iegbe_intr(int irq, void *data) + E1000_WRITE_REG(&adapter->hw, IMC, ~0); + E1000_WRITE_FLUSH(&adapter->hw); + } +- if (likely(netif_rx_schedule_prep(netdev, &adapter->napi))) { ++ if (likely(napi_schedule_prep(&adapter->napi))) { + adapter->total_tx_bytes = 0; + adapter->total_tx_packets = 0; + adapter->total_rx_bytes = 0; + adapter->total_rx_packets = 0; +- __netif_rx_schedule(netdev, &adapter->napi); ++ __napi_schedule(&adapter->napi); + } else + /* this really should not happen! if it does it is basically a + * bug, but not a hard error, so enable ints and continue */ +@@ -3574,7 +3574,7 @@ static int iegbe_clean(struct napi_struc + if (work_done < budget) { + if (likely(adapter->itr_setting & 3)) + iegbe_set_itr(adapter); +- netif_rx_complete(poll_dev, napi); ++ napi_complete(napi); + iegbe_irq_enable(adapter); + } + |