summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <martinez.javier@gmail.com>2010-12-28 21:16:13 +0100
committerJavier Martinez Canillas <martinez.javier@gmail.com>2010-12-28 21:16:13 +0100
commit61e0ba459f086301c472be9467fec4a61e786b48 (patch)
tree20c5e8f1c1b5d9dd72556e6ca3933ee0a47ec1b7
parent05be5e714e0c04795ed85a6ca97b8811342bb668 (diff)
downloadldd3-61e0ba459f086301c472be9467fec4a61e786b48.tar.gz
snull: Change netif_rx_[complete | schedule] to napi_[complete | schedule]
-rw-r--r--snull/snull.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/snull/snull.c b/snull/snull.c
index 5874c8b..a5b0e08 100644
--- a/snull/snull.c
+++ b/snull/snull.c
@@ -318,7 +318,7 @@ static int snull_poll(struct napi_struct *napi, int budget)
}
/* If we processed all packets, we're done; tell the kernel and reenable ints */
if (! priv->rx_queue) {
- netif_rx_complete(dev);
+ napi_complete(napi);
snull_rx_ints(dev, 1);
return 0;
}
@@ -403,7 +403,7 @@ static void snull_napi_interrupt(int irq, void *dev_id, struct pt_regs *regs)
priv->status = 0;
if (statusword & SNULL_RX_INTR) {
snull_rx_ints(dev, 0); /* Disable further interrupts */
- netif_rx_schedule(dev, &priv->napi);
+ napi_schedule(&priv->napi);
}
if (statusword & SNULL_TX_INTR) {
/* a transmission is over: free the skb */