diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-05-22 08:38:10 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-05-22 08:38:10 +0000 |
commit | 7259dbee3775b9977f1ed4e7b590a51c201e50e9 (patch) | |
tree | 06c266c53ed143f421fa6d153bb57f664a6b0b95 /target/linux/adm5120/patches-2.6.30/802-adm5120-switch-remove-redundant-napi-functions.patch | |
parent | eb3098fdb6c515ae584f8b06c4308b745297b8a2 (diff) | |
download | upstream-7259dbee3775b9977f1ed4e7b590a51c201e50e9.tar.gz upstream-7259dbee3775b9977f1ed4e7b590a51c201e50e9.tar.bz2 upstream-7259dbee3775b9977f1ed4e7b590a51c201e50e9.zip |
[adm5120] add experimental support for 2.6.30
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15979 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-2.6.30/802-adm5120-switch-remove-redundant-napi-functions.patch')
-rw-r--r-- | target/linux/adm5120/patches-2.6.30/802-adm5120-switch-remove-redundant-napi-functions.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/adm5120/patches-2.6.30/802-adm5120-switch-remove-redundant-napi-functions.patch b/target/linux/adm5120/patches-2.6.30/802-adm5120-switch-remove-redundant-napi-functions.patch new file mode 100644 index 0000000000..5c5873b731 --- /dev/null +++ b/target/linux/adm5120/patches-2.6.30/802-adm5120-switch-remove-redundant-napi-functions.patch @@ -0,0 +1,20 @@ +--- a/drivers/net/adm5120sw.c ++++ b/drivers/net/adm5120sw.c +@@ -517,7 +517,7 @@ static int adm5120_if_poll(struct napi_s + status = sw_int_status() & SWITCH_INTS_POLL; + if ((done < limit) && (!status)) { + SW_DBG("disable polling mode for %s\n", dev->name); +- netif_rx_complete(dev, napi); ++ napi_complete(napi); + sw_int_unmask(SWITCH_INTS_POLL); + return 0; + } +@@ -548,7 +548,7 @@ static irqreturn_t adm5120_switch_irq(in + sw_dump_intr_mask("poll ints", status); + SW_DBG("enable polling mode for %s\n", dev->name); + sw_int_mask(SWITCH_INTS_POLL); +- netif_rx_schedule(dev, &priv->napi); ++ napi_schedule(&priv->napi); + } + #else + sw_int_ack(status); |