mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 09:42:49 +02:00
f34c09e21c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15979 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
666 B
Diff
21 lines
666 B
Diff
--- 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);
|